ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jai...@apache.org
Subject git commit: "AMBARI-6197. Decommissioned running DataNode has \"delete\" menu item in action pulldown. (jaimin)"
Date Wed, 18 Jun 2014 21:41:03 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk ce09149dc -> 10e6427ac


"AMBARI-6197. Decommissioned running DataNode has \"delete\" menu item in action pulldown.
(jaimin)"

This reverts commit 731c1f19ba1b3c0d7346e1220a534b5d2c0e7c89.


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

Branch: refs/heads/trunk
Commit: 10e6427ac30ebfcfb11603deb69d42673c1adbef
Parents: ce09149
Author: Jaimin Jetly <jaimin@hortonworks.com>
Authored: Wed Jun 18 14:29:33 2014 -0700
Committer: Jaimin Jetly <jaimin@hortonworks.com>
Committed: Wed Jun 18 14:40:50 2014 -0700

----------------------------------------------------------------------
 ambari-web/app/views/main/host/details/host_component_view.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/10e6427a/ambari-web/app/views/main/host/details/host_component_view.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/main/host/details/host_component_view.js b/ambari-web/app/views/main/host/details/host_component_view.js
index d8e2627..217ae30 100644
--- a/ambari-web/app/views/main/host/details/host_component_view.js
+++ b/ambari-web/app/views/main/host/details/host_component_view.js
@@ -205,8 +205,8 @@ App.HostComponentView = Em.View.extend({
    * @type {bool}
    */
   isDeleteComponentDisabled: function () {
-    return !(this.get('isComponentRecommissionAvailable') || [App.HostComponentStatus.stopped,
App.HostComponentStatus.unknown, App.HostComponentStatus.install_failed, App.HostComponentStatus.upgrade_failed,
App.HostComponentStatus.init].contains(this.get('workStatus')));
-  }.property('workStatus','isComponentRecommissionAvailable'),
+    return ![App.HostComponentStatus.stopped, App.HostComponentStatus.unknown, App.HostComponentStatus.install_failed,
App.HostComponentStatus.upgrade_failed, App.HostComponentStatus.init].contains(this.get('workStatus'));
+  }.property('workStatus'),
 
   /**
    * Check if component may be reassinged to another host


Mime
View raw message