You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by dm...@apache.org on 2016/02/19 14:26:28 UTC
[11/21] ambari git commit: AMBARI-15075. Edit Widget Wizard still
open even though it was closed/saved in the previous step. (jaimin)
AMBARI-15075. Edit Widget Wizard still open even though it was closed/saved in the previous step. (jaimin)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/b09994b8
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/b09994b8
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/b09994b8
Branch: refs/heads/branch-dev-patch-upgrade
Commit: b09994b81c29ce0b9b835205ea7b8ff161a5f517
Parents: 8f58e5f
Author: Jaimin Jetly <ja...@hortonworks.com>
Authored: Fri Feb 19 01:00:08 2016 +0530
Committer: Jaimin Jetly <ja...@hortonworks.com>
Committed: Fri Feb 19 01:02:45 2016 +0530
----------------------------------------------------------------------
.../service/widgets/create/wizard_controller.js | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/b09994b8/ambari-web/app/controllers/main/service/widgets/create/wizard_controller.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/main/service/widgets/create/wizard_controller.js b/ambari-web/app/controllers/main/service/widgets/create/wizard_controller.js
index 69f63ed..d45b936 100644
--- a/ambari-web/app/controllers/main/service/widgets/create/wizard_controller.js
+++ b/ambari-web/app/controllers/main/service/widgets/create/wizard_controller.js
@@ -416,14 +416,21 @@ App.WidgetWizardController = App.WizardController.extend({
var service = App.Service.find(this.get('content.widgetService'));
this.finish();
- this.get('popup').hide();
- App.router.transitionTo('main.services.service.summary', service);
- if (!App.get('testMode')) {
+ var self = this;
+ var successCallBack = function() {
+ self.get('popup').hide();
+ App.router.transitionTo('main.services.service.summary', service);
+ App.get('router.updateController').updateAll();
+ };
+
+ if (App.get('testMode')) {
+ successCallBack();
+ } else {
App.clusterStatus.setClusterStatus({
clusterName: App.router.getClusterName(),
clusterState: 'DEFAULT',
localdb: App.db.data
- });
+ }, {successCallback: successCallBack});
}
},
@@ -435,6 +442,5 @@ App.WidgetWizardController = App.WizardController.extend({
this.setCurrentStep('1', false, true);
this.save('widgetType', '');
this.resetDbNamespace();
- App.get('router.updateController').updateAll();
}
});