Selaa lähdekoodia

AMBARI-6696. add service always highlights ATS component (Buzhor Denys via alexantonenko)

Alex Antonenko 10 vuotta sitten
vanhempi
commit
9f1318585e
1 muutettua tiedostoa jossa 4 lisäystä ja 1 poistoa
  1. 4 1
      ambari-web/app/controllers/wizard.js

+ 4 - 1
ambari-web/app/controllers/wizard.js

@@ -974,9 +974,12 @@ App.WizardController = Em.Controller.extend(App.LocalStorage, {
    */
   loadMasterComponentHosts: function () {
     var masterComponentHosts = this.getDBProperty('masterComponentHosts');
+    var stackMasterComponents = App.get('components.masters').concat(App.get('components.masterBehavior')).uniq();
     if (!masterComponentHosts) {
       masterComponentHosts = [];
-      App.HostComponent.find().filterProperty('isMaster', true).forEach(function (item) {
+      App.HostComponent.find().filter(function(component) {
+        return stackMasterComponents.contains(component.get('componentName'));
+      }).forEach(function (item) {
         masterComponentHosts.push({
           component: item.get('componentName'),
           hostName: item.get('hostName'),