Updated Branches: refs/heads/trunk fdfe81086 -> ab1265376
AMBARI-4589. Tez: Run Service Check, Start, and Stop actions should be disabled. (xiwang via yusaku) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/ab126537 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/ab126537 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/ab126537 Branch: refs/heads/trunk Commit: ab1265376829d9d21a217b5dd5996c2edbfa0400 Parents: fdfe810 Author: Yusaku Sako <[email protected]> Authored: Thu Feb 13 14:13:13 2014 -0800 Committer: Yusaku Sako <[email protected]> Committed: Thu Feb 13 14:13:29 2014 -0800 ---------------------------------------------------------------------- ambari-web/app/controllers/main/service/item.js | 2 ++ 1 file changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/ab126537/ambari-web/app/controllers/main/service/item.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/controllers/main/service/item.js b/ambari-web/app/controllers/main/service/item.js index 6ca3b4b..1fb1e76 100644 --- a/ambari-web/app/controllers/main/service/item.js +++ b/ambari-web/app/controllers/main/service/item.js @@ -309,11 +309,13 @@ App.MainServiceItemController = Em.Controller.extend({ isStartDisabled: function () { if(this.get('isPending')) return true; + if (this.get('content.serviceName') == 'TEZ') return true; return !(this.get('content.healthStatus') == 'red'); }.property('content.healthStatus','isPending'), isStopDisabled: function () { if(this.get('isPending')) return true; + if (this.get('content.serviceName') == 'TEZ') return true; if (App.get('isHaEnabled') && this.get('content.serviceName') == 'HDFS' && this.get('content.hostComponents').filterProperty('componentName', 'NAMENODE').someProperty('workStatus', App.HostComponentStatus.started)) { return false; }
