Browse Source

AMBARI-4172 Cluster deploy: inconsistent color of status message. (atkach)

atkach 11 years ago
parent
commit
4790e35e46
1 changed files with 8 additions and 8 deletions
  1. 8 8
      ambari-web/app/views/wizard/step9_view.js

+ 8 - 8
ambari-web/app/views/wizard/step9_view.js

@@ -107,20 +107,20 @@ App.HostStatusView = Em.View.extend({
   }.observes('obj.status', 'obj.progress', 'controller.progress'),
   }.observes('obj.status', 'obj.progress', 'controller.progress'),
 
 
   isFailed:function () {
   isFailed:function () {
-    return (this.get('controller.isStepCompleted') === true && this.get('obj.status') === 'failed');
-  }.property('controller.isStepCompleted', 'controller.status'),
+    return (this.get('isHostCompleted') && this.get('obj.status') === 'failed');
+  }.property('obj.status', 'isHostCompleted'),
 
 
   isSuccess:function () {
   isSuccess:function () {
-    return (this.get('controller.isStepCompleted') === true && this.get('obj.status') === 'success');
-  }.property('controller.isStepCompleted', 'controller.status'),
+    return (this.get('isHostCompleted') && this.get('obj.status') === 'success');
+  }.property('obj.status', 'isHostCompleted'),
 
 
   isWarning:function () {
   isWarning:function () {
-    return(this.get('controller.isStepCompleted') === true && this.get('obj.status') === 'warning');
-  }.property('controller.isStepCompleted', 'controller.status'),
+    return(this.get('isHostCompleted') && this.get('obj.status') === 'warning');
+  }.property('obj.status', 'isHostCompleted'),
 
 
   isHostCompleted:function () {
   isHostCompleted:function () {
-    return this.get('obj.progress') == 100 || this.get('controller.isStepCompleted');
-  }.property('controller.isStepCompleted', 'obj.progress'),
+    return this.get('obj.progress') == 100;
+  }.property('obj.progress'),
 
 
   hostLogPopup:function (event, context) {
   hostLogPopup:function (event, context) {
     var controller = this.get('controller');
     var controller = this.get('controller');