Browse Source

AMBARI-3224. Progress bar is shown in green rather than blue. (onechiporenko)

Oleg Nechiporenko 11 years ago
parent
commit
c9b5b00ad0
1 changed files with 1 additions and 3 deletions
  1. 1 3
      ambari-web/app/views/wizard/step9_view.js

+ 1 - 3
ambari-web/app/views/wizard/step9_view.js

@@ -92,12 +92,10 @@ App.HostStatusView = Em.View.extend({
       if (this.get('obj.progress') === '100') {
       if (this.get('obj.progress') === '100') {
         this.set('obj.message', Em.I18n.t('installer.step9.host.status.failed'));
         this.set('obj.message', Em.I18n.t('installer.step9.host.status.failed'));
       }
       }
-    } else if (this.get('obj.status') === 'success' && this.get('isHostCompleted')) {
-      if (this.get('obj.progress') == 100) {
+    } else if (this.get('obj.status') === 'success' && this.get('isHostCompleted') && parseInt(this.get('controller.progress')) > 35) {
         this.set('barColor', 'progress-success');
         this.set('barColor', 'progress-success');
         this.set('obj.message', Em.I18n.t('installer.step9.host.status.success'));
         this.set('obj.message', Em.I18n.t('installer.step9.host.status.success'));
       }
       }
-    }
   }.observes('obj.status', 'obj.progress'),
   }.observes('obj.status', 'obj.progress'),
 
 
   isFailed:function () {
   isFailed:function () {