Repository: ambari
Updated Branches:
  refs/heads/trunk b4307db96 -> 731c1f19b


AMBARI-5050 Host Details page: "Delete" action is temporarily not available 
even though the NodeManager is in Decommissioned state. (ababiichuk)


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

Branch: refs/heads/trunk
Commit: 731c1f19ba1b3c0d7346e1220a534b5d2c0e7c89
Parents: b4307db
Author: aBabiichuk <[email protected]>
Authored: Wed Mar 12 16:31:58 2014 +0200
Committer: aBabiichuk <[email protected]>
Committed: Wed Mar 12 18:11:27 2014 +0200

----------------------------------------------------------------------
 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/731c1f19/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 9432120..2bdd4fe 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
@@ -225,8 +225,8 @@ App.HostComponentView = Em.View.extend({
    * @type {bool}
    */
   isDeleteComponentDisabled: function () {
-    return ![App.HostComponentStatus.stopped, App.HostComponentStatus.unknown, 
App.HostComponentStatus.install_failed, App.HostComponentStatus.upgrade_failed, 
App.HostComponentStatus.init].contains(this.get('workStatus'));
-  }.property('workStatus'),
+    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'),
 
   /**
    * Check if component may be reassinged to another host

Reply via email to