|
@@ -255,9 +255,12 @@ App.MainServiceItemController = Em.Controller.extend({
|
|
|
|
|
|
isStopDisabled: function () {
|
|
|
if(this.get('isPending')) return true;
|
|
|
- return !(this.get('content.healthStatus') == 'green');
|
|
|
+ if (!App.HostComponent.find().someProperty('componentName', 'SECONDARY_NAMENODE') && this.get('content.serviceName') == 'HDFS' && this.get('content.hostComponents').filterProperty('componentName', 'NAMENODE').someProperty('workStatus', App.HostComponentStatus.started)) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ return (this.get('content.healthStatus') != 'green');
|
|
|
}.property('content.healthStatus','isPending'),
|
|
|
|
|
|
isPending:true
|
|
|
|
|
|
-})
|
|
|
+});
|