|
@@ -20,7 +20,7 @@ var App = require('app');
|
|
var lazyloading = require('utils/lazy_loading');
|
|
var lazyloading = require('utils/lazy_loading');
|
|
var numberUtils = require('utils/number_utils');
|
|
var numberUtils = require('utils/number_utils');
|
|
|
|
|
|
-App.WizardStep3Controller = Em.Controller.extend({
|
|
|
|
|
|
+App.WizardStep3Controller = Em.Controller.extend(App.ReloadPopupMixin, {
|
|
|
|
|
|
name: 'wizardStep3Controller',
|
|
name: 'wizardStep3Controller',
|
|
|
|
|
|
@@ -477,6 +477,7 @@ App.WizardStep3Controller = Em.Controller.extend({
|
|
* @return {$.ajax|null}
|
|
* @return {$.ajax|null}
|
|
*/
|
|
*/
|
|
doBootstrap: function () {
|
|
doBootstrap: function () {
|
|
|
|
+ var self = this;
|
|
if (this.get('stopBootstrap')) {
|
|
if (this.get('stopBootstrap')) {
|
|
return null;
|
|
return null;
|
|
}
|
|
}
|
|
@@ -496,12 +497,14 @@ App.WizardStep3Controller = Em.Controller.extend({
|
|
timeout: App.timeout
|
|
timeout: App.timeout
|
|
}).
|
|
}).
|
|
then(
|
|
then(
|
|
- null,
|
|
|
|
- function () {
|
|
|
|
- App.showReloadPopup();
|
|
|
|
- console.log('Bootstrap failed');
|
|
|
|
- }
|
|
|
|
- );
|
|
|
|
|
|
+ function () {
|
|
|
|
+ self.closeReloadPopup();
|
|
|
|
+ },
|
|
|
|
+ function () {
|
|
|
|
+ self.showReloadPopup();
|
|
|
|
+ console.log('Bootstrap failed');
|
|
|
|
+ }
|
|
|
|
+ );
|
|
},
|
|
},
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -578,6 +581,7 @@ App.WizardStep3Controller = Em.Controller.extend({
|
|
if (this.get('stopBootstrap')) {
|
|
if (this.get('stopBootstrap')) {
|
|
return null;
|
|
return null;
|
|
}
|
|
}
|
|
|
|
+ var self = this;
|
|
return App.ajax.send({
|
|
return App.ajax.send({
|
|
name: 'wizard.step3.is_hosts_registered',
|
|
name: 'wizard.step3.is_hosts_registered',
|
|
sender: this,
|
|
sender: this,
|
|
@@ -588,12 +592,14 @@ App.WizardStep3Controller = Em.Controller.extend({
|
|
timeout: App.timeout
|
|
timeout: App.timeout
|
|
}).
|
|
}).
|
|
then(
|
|
then(
|
|
- null,
|
|
|
|
- function () {
|
|
|
|
- App.showReloadPopup();
|
|
|
|
- console.log('Error: Getting registered host information from the server');
|
|
|
|
- }
|
|
|
|
- );
|
|
|
|
|
|
+ function () {
|
|
|
|
+ self.closeReloadPopup();
|
|
|
|
+ },
|
|
|
|
+ function () {
|
|
|
|
+ self.showReloadPopup();
|
|
|
|
+ console.log('Error: Getting registered host information from the server');
|
|
|
|
+ }
|
|
|
|
+ );
|
|
},
|
|
},
|
|
|
|
|
|
/**
|
|
/**
|