Kanagaraj M has uploaded a new change for review. Change subject: webadmin: Disable 'Reset All' when volume options empty ......................................................................
webadmin: Disable 'Reset All' when volume options empty 'Reset All' action in the Volume options sub-tab should be disabled if there are no options set for the selected volume. Change-Id: Ib4b21a9307ef1c2cb6d491bdcc636a8a3cbec6c0 Bug-Url: https://bugzilla.redhat.com/918441 Signed-off-by: Kanagaraj M <[email protected]> --- M frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/gluster/VolumeParameterListModel.java 1 file changed, 2 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/26/13126/1 diff --git a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/gluster/VolumeParameterListModel.java b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/gluster/VolumeParameterListModel.java index 15fd049..493f99d 100644 --- a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/gluster/VolumeParameterListModel.java +++ b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/gluster/VolumeParameterListModel.java @@ -1,6 +1,7 @@ package org.ovirt.engine.ui.uicommonweb.models.gluster; import java.util.ArrayList; +import java.util.List; import java.util.Set; import org.ovirt.engine.core.common.action.VdcActionType; @@ -95,6 +96,7 @@ { getEditParameterCommand().setIsExecutionAllowed(getSelectedItems() != null && getSelectedItems().size() == 1); getResetParameterCommand().setIsExecutionAllowed(getSelectedItems() != null && getSelectedItems().size() == 1); + getResetAllParameterCommand().setIsExecutionAllowed(getItems() != null && ((List) getItems()).size() > 0); } private void addParameter() { -- To view, visit http://gerrit.ovirt.org/13126 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ib4b21a9307ef1c2cb6d491bdcc636a8a3cbec6c0 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Kanagaraj M <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
