Tomer Saban has uploaded a new change for review. Change subject: webadmin: CPU shares custom value is now possible ......................................................................
webadmin: CPU shares custom value is now possible On the "New Virtual Machine" dialog, inside the "Resource Allocation" tab on the left, when selecting "Custom" on the CPU shares combobox, the textbox on the right(Where you set the actual value of the CPU shares) wasn't changeable. Now, it becomes changeable once "Custom" is chosen and unchangeable once another value is chosen in the combobox. Change-Id: Ie1fe20afa682926ac14b7d9ac7c5fa589b3b0459 Bug-Url: https://bugzilla.redhat.com/1152636 Signed-off-by: Tomer Saban <tsa...@redhat.com> --- M frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/VmModelBehaviorBase.java 1 file changed, 2 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/68/34568/1 diff --git a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/VmModelBehaviorBase.java b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/VmModelBehaviorBase.java index f8ec6b1..62b3de7 100644 --- a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/VmModelBehaviorBase.java +++ b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/VmModelBehaviorBase.java @@ -875,6 +875,8 @@ .setEntity(changeable || none ? null //$NON-NLS-1$ : getModel().getCpuSharesAmountSelection().getSelectedItem().getValue()); + + getModel().getCpuSharesAmount().setIsChangable(changeable); } public void updateCpuSharesSelection() { -- To view, visit http://gerrit.ovirt.org/34568 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ie1fe20afa682926ac14b7d9ac7c5fa589b3b0459 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Tomer Saban <tsa...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches