Browse Source

AMBARI-5530. Add ui controls for deleting + adding Ganglia Monitor to a host.(xiwang)

Xi Wang 11 years ago
parent
commit
6d2743b5eb
1 changed files with 2 additions and 2 deletions
  1. 2 2
      ambari-web/app/models/stack_service_component.js

+ 2 - 2
ambari-web/app/models/stack_service_component.js

@@ -47,7 +47,7 @@ App.StackServiceComponent = DS.Model.extend({
   }.property('componentName'),
 
   isDeletable: function() {
-    return ['SUPERVISOR', 'HBASE_MASTER', 'DATANODE', 'TASKTRACKER', 'NODEMANAGER', 'HBASE_REGIONSERVER'].contains(this.get('componentName'));
+    return ['SUPERVISOR', 'HBASE_MASTER', 'DATANODE', 'TASKTRACKER', 'NODEMANAGER', 'HBASE_REGIONSERVER', 'GANGLIA_MONITOR'].contains(this.get('componentName'));
   }.property('componentName'),
 
   isRollinRestartAllowed: function() {
@@ -63,7 +63,7 @@ App.StackServiceComponent = DS.Model.extend({
   }.property('componentName'),
 
   isAddableToHost: function() {
-    return ["DATANODE", "TASKTRACKER", "NODEMANAGER", "HBASE_REGIONSERVER", "HBASE_MASTER", "ZOOKEEPER_SERVER", "SUPERVISOR"].contains(this.get('componentName'));
+    return ["DATANODE", "TASKTRACKER", "NODEMANAGER", "HBASE_REGIONSERVER", "HBASE_MASTER", "ZOOKEEPER_SERVER", "SUPERVISOR", "GANGLIA_MONITOR"].contains(this.get('componentName'));
   }.property('componentName'),
 
   isShownOnInstallerAssignMasterPage: function() {