|
@@ -356,6 +356,11 @@ App.MainHostSummaryView = Em.View.extend({
|
|
return 'health-status-color-blue icon-cog';
|
|
return 'health-status-color-blue icon-cog';
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ //Class when maintenance
|
|
|
|
+ if (this.get('workStatus') === App.HostComponentStatus.maintenance) {
|
|
|
|
+ return 'icon-medkit';
|
|
|
|
+ }
|
|
|
|
+
|
|
//For all other cases
|
|
//For all other cases
|
|
return 'health-status-' + App.HostComponentStatus.getKeyName(this.get('workStatus'));
|
|
return 'health-status-' + App.HostComponentStatus.getKeyName(this.get('workStatus'));
|
|
}.property('workStatus', 'isDataNodeRecommissionAvailable', 'this.content.isDecommissioning'),
|
|
}.property('workStatus', 'isDataNodeRecommissionAvailable', 'this.content.isDecommissioning'),
|
|
@@ -409,6 +414,10 @@ App.MainHostSummaryView = Em.View.extend({
|
|
return (this.get('workStatus') == App.HostComponentStatus.started || this.get('workStatus') == App.HostComponentStatus.starting);
|
|
return (this.get('workStatus') == App.HostComponentStatus.started || this.get('workStatus') == App.HostComponentStatus.starting);
|
|
}.property('workStatus'),
|
|
}.property('workStatus'),
|
|
|
|
|
|
|
|
+ isStop: function () {
|
|
|
|
+ return (this.get('workStatus') == App.HostComponentStatus.stopped);
|
|
|
|
+ }.property('workStatus'),
|
|
|
|
+
|
|
isInstalling: function () {
|
|
isInstalling: function () {
|
|
return (this.get('workStatus') == App.HostComponentStatus.installing);
|
|
return (this.get('workStatus') == App.HostComponentStatus.installing);
|
|
}.property('workStatus'),
|
|
}.property('workStatus'),
|
|
@@ -441,6 +450,10 @@ App.MainHostSummaryView = Em.View.extend({
|
|
return this.get('isDataNode') && this.get("isDataNodeRecommissionAvailable") && hostComponentDecommissioning;
|
|
return this.get('isDataNode') && this.get("isDataNodeRecommissionAvailable") && hostComponentDecommissioning;
|
|
}.property("workStatus", "isDataNodeRecommissionAvailable", "hostComponent.isDecommissioning"),
|
|
}.property("workStatus", "isDataNodeRecommissionAvailable", "hostComponent.isDecommissioning"),
|
|
|
|
|
|
|
|
+ isInMaintenance: function () {
|
|
|
|
+ return (this.get('workStatus') == App.HostComponentStatus.maintenance);
|
|
|
|
+ }.property("workStatus"),
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* Set in template via binding from parent view
|
|
* Set in template via binding from parent view
|
|
*/
|
|
*/
|