|
@@ -70,6 +70,13 @@ App.Decommissionable = Em.Mixin.create({
|
|
return this.get('content.service.workStatus') != App.HostComponentStatus.started;
|
|
return this.get('content.service.workStatus') != App.HostComponentStatus.started;
|
|
}.property('content.service.workStatus'),
|
|
}.property('content.service.workStatus'),
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * @override App.HostComponentView.isRestartableComponent
|
|
|
|
+ */
|
|
|
|
+ isRestartableComponent: function() {
|
|
|
|
+ return this.get('isComponentDecommissionAvailable') && App.get('components.restartable').contains(this.get('content.componentName'));
|
|
|
|
+ }.property('isComponentDecommissionAvailable'),
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* Tooltip message shows if decommission/recommission is disabled
|
|
* Tooltip message shows if decommission/recommission is disabled
|
|
* when masters for current component is down
|
|
* when masters for current component is down
|
|
@@ -287,4 +294,4 @@ App.Decommissionable = Em.Mixin.create({
|
|
}
|
|
}
|
|
}
|
|
}
|
|
})
|
|
})
|
|
-});
|
|
|
|
|
|
+});
|