Sergey Gotliv has uploaded a new change for review. Change subject: webadmin: Enable "shareable" for preallocated floating disk. ......................................................................
webadmin: Enable "shareable" for preallocated floating disk. "Shareable" option is valid for preallocated disk format and not valid for sparse. Currently, this option becomes grayed out in UI while choosing "sparse" disk format, the problem is that it stays grayed out even after choosing "preallocated" format as described in BZ993148. This patch resolves that issue. Change-Id: I95c58cd001cfdf2f0d1a4fc75098b650f0c35fd3 Bug-Url: https://bugzilla.redhat.com/993148 Signed-off-by: Sergey Gotliv <sgot...@redhat.com> --- M frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/AbstractDiskModel.java 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/00/17700/1 diff --git a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/AbstractDiskModel.java b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/AbstractDiskModel.java index af6b794..c815998 100644 --- a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/AbstractDiskModel.java +++ b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/AbstractDiskModel.java @@ -489,7 +489,7 @@ getIsShareable().setEntity(false); } else { - getIsShareable().setIsChangable(getVm() != null && getVm().isDown()); + getIsShareable().setIsChangable(isEditEnabled()); } } -- To view, visit http://gerrit.ovirt.org/17700 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I95c58cd001cfdf2f0d1a4fc75098b650f0c35fd3 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Sergey Gotliv <sgot...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches