Browse Source

AMBARI-3602. Reassign wizard: Show a confirmation popup for continuing ahead after the manual command step. (akovalenko)

Aleksandr Kovalenko 11 years ago
parent
commit
71226d3542
2 changed files with 6 additions and 1 deletions
  1. 1 0
      ambari-web/app/messages.js
  2. 5 1
      ambari-web/app/routes/reassign_master_routes.js

+ 1 - 0
ambari-web/app/messages.js

@@ -1153,6 +1153,7 @@ Em.I18n.translations = {
       '</div>',
   'services.reassign.step5.body.securityNotice': 'Note: {0}',
   'services.reassign.step5.body.securityConfigsList': 'Keytab file <b>{0}</b> containing principal <b>{1}</b> should exist on <b>{2}</b>',
+  'services.reassign.step5.confirmPopup.body': 'Please confirm that you have run the manual steps before continuing.',
   'services.reassign.step6.header': 'Start and Test services',
   'services.reassign.step6.task0.title': 'Delete disabled {0}',
   'services.reassign.step6.task1.title': 'Start All Services',

+ 5 - 1
ambari-web/app/routes/reassign_master_routes.js

@@ -221,7 +221,11 @@ module.exports = Em.Route.extend({
         }
       })
     },
-    next: Em.Router.transitionTo('step6'),
+    next: function (router) {
+      App.showConfirmationPopup(function () {
+        router.transitionTo('step6');
+      }, Em.I18n.t('services.reassign.step5.confirmPopup.body'));
+    },
 
     unroutePath: function () {
       return false;