|
@@ -40,12 +40,15 @@ App.WizardStep3View = Em.View.extend({
|
|
|
failedHosts++;
|
|
|
}
|
|
|
});
|
|
|
- if (this.get('controller.isHostHaveWarnings')) {
|
|
|
+ if (hosts.length==0) {
|
|
|
+ this.set('status', 'alert-warn');
|
|
|
+ this.set('linkText', '');
|
|
|
+ this.set('message', Em.I18n.t('installer.step3.warnings.missingHosts'));
|
|
|
+ } else if (this.get('controller.isHostHaveWarnings')) {
|
|
|
this.set('status', 'alert-warn');
|
|
|
this.set('linkText', Em.I18n.t('installer.step3.warnings.linkText'));
|
|
|
this.set('message', Em.I18n.t('installer.step3.warnings.fails').format(hosts.length, failedHosts));
|
|
|
- }
|
|
|
- else {
|
|
|
+ } else {
|
|
|
this.set('status', 'alert-success');
|
|
|
this.set('linkText', Em.I18n.t('installer.step3.noWarnings.linkText'));
|
|
|
if (failedHosts == 0) {
|