Prechádzať zdrojové kódy

AMBARI-5133: Maintenance Mode: On Host Details page, Start All fails. (jaimin)

Jaimin Jetly 11 rokov pred
rodič
commit
c825ed2149

+ 7 - 2
ambari-web/app/controllers/main/host/details.js

@@ -48,6 +48,11 @@ App.MainHostDetailsController = Em.Controller.extend({
     return this.get('content.hostComponents').filterProperty('service.isInPassive',false);
   }.property('content.hostComponents'),
 
+  serviceNonClientActiveComponents: function() {
+    return this.get('serviceActiveComponents').filterProperty('isClient',false);
+  }.property('serviceActiveComponents'),
+
+
   /**
    * Send specific command to server
    * @param url
@@ -1006,7 +1011,7 @@ App.MainHostDetailsController = Em.Controller.extend({
 
   doStartAllComponents: function() {
     var self = this;
-    var components = this.get('serviceActiveComponents');
+    var components = this.get('serviceNonClientActiveComponents');
     var componentsLength = components == null ? 0 : components.get('length');
     if (componentsLength > 0) {
       App.showConfirmationPopup(function() {
@@ -1017,7 +1022,7 @@ App.MainHostDetailsController = Em.Controller.extend({
   
   doStopAllComponents: function() {
     var self = this;
-    var components = this.get('serviceActiveComponents');
+    var components = this.get('serviceNonClientActiveComponents');
     var componentsLength = components == null ? 0 : components.get('length');
     if (componentsLength > 0) {
       App.showConfirmationPopup(function() {