This is an automated email from the ASF dual-hosted git repository.

atkach pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 533073b  AMBARI-23374 Add Service Wizard will not reset after adding a 
service
533073b is described below

commit 533073b4a690c5db81125bc30247eef0c4985331
Author: Andrii Tkach <[email protected]>
AuthorDate: Tue Mar 27 16:09:46 2018 +0300

    AMBARI-23374 Add Service Wizard will not reset after adding a service
---
 ambari-web/app/routes/add_service_routes.js | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/ambari-web/app/routes/add_service_routes.js 
b/ambari-web/app/routes/add_service_routes.js
index 4120da7..8413986 100644
--- a/ambari-web/app/routes/add_service_routes.js
+++ b/ambari-web/app/routes/add_service_routes.js
@@ -49,7 +49,8 @@ module.exports = App.WizardRoute.extend({
               onClose: function () {
                 var controller = router.get('addServiceController');
                 var currentStep = controller.get('currentStep');
-                if(currentStep == '7') {
+                const DEPLOY_STEP = '6';
+                if (currentStep === DEPLOY_STEP) {
                   // Show a warning popup
                   this.showWarningPopup();
                 } else {
@@ -403,7 +404,7 @@ module.exports = App.WizardRoute.extend({
     back: Em.Router.transitionTo('step6'),
     complete: function (router, context) {
       var addServiceController = router.get('addServiceController');
-      addServiceController.get('popup').onPrimary();
+      addServiceController.get('popup').onClose();
     }
   }),
 

-- 
To stop receiving notification emails like this one, please contact
[email protected].

Reply via email to