Quellcode durchsuchen

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

Oleg Nechiporenko vor 11 Jahren
Ursprung
Commit
c9b5b00ad0
1 geänderte Dateien mit 1 neuen und 3 gelöschten Zeilen
  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') {
         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('obj.message', Em.I18n.t('installer.step9.host.status.success'));
       }
-    }
   }.observes('obj.status', 'obj.progress'),
 
   isFailed:function () {