You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by al...@apache.org on 2016/04/05 14:43:05 UTC

ambari git commit: AMBARI-15649. Service Actions button is missing. Additional fix (alexantonenko)

Repository: ambari
Updated Branches:
  refs/heads/trunk 63e278dc8 -> cdb866d7a


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


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/cdb866d7
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/cdb866d7
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/cdb866d7

Branch: refs/heads/trunk
Commit: cdb866d7a8f9c313da76f164f738ca24d27b0893
Parents: 63e278d
Author: Alex Antonenko <hi...@gmail.com>
Authored: Tue Apr 5 15:16:33 2016 +0300
Committer: Alex Antonenko <hi...@gmail.com>
Committed: Tue Apr 5 15:43:01 2016 +0300

----------------------------------------------------------------------
 ambari-web/app/views/main/service/item.js | 11 -----------
 1 file changed, 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/cdb866d7/ambari-web/app/views/main/service/item.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/main/service/item.js b/ambari-web/app/views/main/service/item.js
index 558c6aa..6fc5068 100644
--- a/ambari-web/app/views/main/service/item.js
+++ b/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])) {