Ramesh N has uploaded a new change for review.

Change subject: webadmin : Hide 'Sync Mom Policy' action under Hosts sub tab in 
gluster only mode
......................................................................

webadmin : Hide 'Sync Mom Policy' action under Hosts sub tab in gluster only 
mode

Hiding the action 'Sync Mom Policy' in Hosts sub tab under Cluster Tab when 
engine
is running in Gluster only mode.

Change-Id: I91d3a3dfc71d1779b646c74379f4410145304b0d
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1019570
Signed-off-by: Ramesh Nachimuthu <[email protected]>
---
M 
frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/clusters/ClusterHostListModel.java
1 file changed, 4 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/10/21010/1

diff --git 
a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/clusters/ClusterHostListModel.java
 
b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/clusters/ClusterHostListModel.java
index 9bdf139..f1769da 100644
--- 
a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/clusters/ClusterHostListModel.java
+++ 
b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/clusters/ClusterHostListModel.java
@@ -1,5 +1,7 @@
 package org.ovirt.engine.ui.uicommonweb.models.clusters;
 
+import java.util.ArrayList;
+
 import org.ovirt.engine.core.common.action.VdcActionParametersBase;
 import org.ovirt.engine.core.common.action.VdcActionType;
 import org.ovirt.engine.core.common.action.VdsActionParameters;
@@ -7,6 +9,7 @@
 import org.ovirt.engine.core.common.businessentities.VDSGroup;
 import org.ovirt.engine.core.common.businessentities.VDSStatus;
 import org.ovirt.engine.core.common.interfaces.SearchType;
+import org.ovirt.engine.core.common.mode.ApplicationMode;
 import org.ovirt.engine.core.common.queries.SearchParameters;
 import org.ovirt.engine.core.common.queries.VdcQueryType;
 import org.ovirt.engine.core.compat.Version;
@@ -18,14 +21,13 @@
 import org.ovirt.engine.ui.uicompat.IFrontendMultipleActionAsyncCallback;
 import org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs;
 
-import java.util.ArrayList;
-
 @SuppressWarnings("unused")
 public class ClusterHostListModel extends HostListModel
 {
 
     public ClusterHostListModel() {
         setUpdateMomPolicyCommand(new UICommand("updateMomPolicyCommand", 
this)); //$NON-NLS-1$
+        
getUpdateMomPolicyCommand().setAvailableInModes(ApplicationMode.VirtOnly);
     }
 
     private UICommand updateMomPolicyCommand;


-- 
To view, visit http://gerrit.ovirt.org/21010
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I91d3a3dfc71d1779b646c74379f4410145304b0d
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Ramesh N <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to