AMBARI-17091. Add spinner to Assign master view (onechiporenko)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/e2932d48 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/e2932d48 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/e2932d48 Branch: refs/heads/trunk Commit: e2932d482ec7a5dd2f48961f65bfd4fc212f4443 Parents: ce9bc3f Author: Oleg Nechiporenko <onechipore...@apache.org> Authored: Tue Jun 7 15:48:16 2016 +0300 Committer: Oleg Nechiporenko <onechipore...@apache.org> Committed: Wed Jun 8 11:07:23 2016 +0300 ---------------------------------------------------------------------- .../app/controllers/wizard/step7/assign_master_controller.js | 5 ++--- ambari-web/app/mixins/wizard/assign_master_components.js | 3 ++- 2 files changed, 4 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/e2932d48/ambari-web/app/controllers/wizard/step7/assign_master_controller.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/controllers/wizard/step7/assign_master_controller.js b/ambari-web/app/controllers/wizard/step7/assign_master_controller.js index acbb198..3e93e3b 100644 --- a/ambari-web/app/controllers/wizard/step7/assign_master_controller.js +++ b/ambari-web/app/controllers/wizard/step7/assign_master_controller.js @@ -115,7 +115,7 @@ App.AssignMasterOnStep7Controller = Em.Controller.extend(App.BlueprintMixin, App }, showWarningPopup: function() { var mainPopupContext = this; - var warningPopup = App.ModalPopup.show({ + App.ModalPopup.show({ encodeBody: false, header: Em.I18n.t('common.warning'), primaryClass: 'btn-warning', @@ -230,7 +230,6 @@ App.AssignMasterOnStep7Controller = Em.Controller.extend(App.BlueprintMixin, App this.set("hosts", result); this.sortHosts(result); - this.set('isLoaded', true); } }, @@ -373,7 +372,7 @@ App.AssignMasterOnStep7Controller = Em.Controller.extend(App.BlueprintMixin, App * @method submit */ submit: function () { - var self = this; + var self = this; App.get('router.mainAdminKerberosController').getKDCSessionState(function() { self.get('popup').hide(); var context = self.get('configWidgetContext'); http://git-wip-us.apache.org/repos/asf/ambari/blob/e2932d48/ambari-web/app/mixins/wizard/assign_master_components.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/mixins/wizard/assign_master_components.js b/ambari-web/app/mixins/wizard/assign_master_components.js index a8b0caf..1ed649b 100644 --- a/ambari-web/app/mixins/wizard/assign_master_components.js +++ b/ambari-web/app/mixins/wizard/assign_master_components.js @@ -498,6 +498,7 @@ App.AssignMasterComponents = Em.Mixin.create({ clearStep: function () { this.setProperties({ hosts: [], + isLoaded: false, selectedServicesMasters: [], servicesMasters: [] }); @@ -527,6 +528,7 @@ App.AssignMasterComponents = Em.Mixin.create({ self.get('addableComponents').forEach(function (componentName) { self.updateComponent(componentName); }, self); + self.set('isLoaded', true); if (self.thereIsNoMasters() && !self.get('mastersToCreate').length) { App.router.send('next'); } @@ -597,7 +599,6 @@ App.AssignMasterComponents = Em.Mixin.create({ } this.set("hosts", result); this.sortHosts(this.get('hosts')); - this.set('isLoaded', true); }, /**