Skip to content

Commit

Permalink
webadmin: Set Incremental Backup to uncheckable when ISO is provided
Browse files Browse the repository at this point in the history
When a user will try to upload ISO file the Incremental Backup will be
set to false and uncheckable

Bug-Url: https://bugzilla.redhat.com/2120228
Signed-off-by: Artiom Divak <adivak@redhat.com>
  • Loading branch information
ArtiomDivak committed Aug 24, 2022
1 parent 27dc8ee commit a905c20
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,8 @@ public void initialize() {
if (imageInfoModel.getContentType() == DiskContentType.ISO) {
getDiskModel().getAlias().setEntity(imageInfoModel.getFileName());
getDiskModel().getDescription().setEntity(imageInfoModel.getFileName());
diskModel.getIsIncrementalBackup().setEntity(false);
diskModel.getIsIncrementalBackup().setIsChangeable(false);
} else {
getDiskModel().getAlias().setEntity(null);
getDiskModel().getDescription().setEntity(null);
Expand Down

0 comments on commit a905c20

Please sign in to comment.