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 authored and ahadas committed Aug 29, 2022
1 parent 1658c0f commit 49195f8
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,13 @@ public void initialize() {
if (imageInfoModel.getContentType() == DiskContentType.ISO) {
getDiskModel().getAlias().setEntity(imageInfoModel.getFileName());
getDiskModel().getDescription().setEntity(imageInfoModel.getFileName());
getDiskModel().getIsIncrementalBackup().setEntity(false);
getDiskModel().getIsIncrementalBackup().setIsChangeable(false);
} else {
getDiskModel().getAlias().setEntity(null);
getDiskModel().getDescription().setEntity(null);
getDiskModel().getIsIncrementalBackup().setEntity(true);
getDiskModel().getIsIncrementalBackup().setIsChangeable(true);
}
getDiskModel().getSize().setEntity(getVirtualSizeInGB());
});
Expand Down

0 comments on commit 49195f8

Please sign in to comment.