Kaynağa Gözat

AMBARI-15649. Service Actions button is missing. Additional fix (alexantonenko)

Alex Antonenko 9 yıl önce
ebeveyn
işleme
cdb866d7a8
1 değiştirilmiş dosya ile 0 ekleme ve 11 silme
  1. 0 11
      ambari-web/app/views/main/service/item.js

+ 0 - 11
ambari-web/app/views/main/service/item.js

@@ -266,17 +266,6 @@ App.MainServiceItemView = Em.View.extend({
 
     options.push(actionMap.DELETE_SERVICE);
 
-    /**
-     * When some Wizard is running by another user, "Service Actions" is hidden and there is no sense to calculate its items
-     * Also, when this menu is not empty and becomes visible, there are some JS-errors based on Ember inner logic for adding Listeners
-     * To avoid this behavior it's cleaned while it's not visible
-     */
-    if (App.router.get('wizardWatcherController.isWizardRunning')) {
-      this.set('maintenance', []);
-      this.set('isMaintenanceSet', true);
-      return;
-    }
-
     if (this.get('maintenance.length')) {
       this.get('maintenance').forEach(function(option, index) {
         if (JSON.stringify(option) !== JSON.stringify(options[index])) {