Selaa lähdekoodia

AMBARI-25526: Typo in the "NameNode" turn off maintenance mode dialog box (#3542)

Yu Hou 3 vuotta sitten
vanhempi
commit
4ca49bbd7a
2 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 1 1
      ambari-web/app/controllers/main/host/details.js
  2. 1 1
      ambari-web/app/messages.js

+ 1 - 1
ambari-web/app/controllers/main/host/details.js

@@ -2913,7 +2913,7 @@ App.MainHostDetailsController = Em.Controller.extend(App.SupportClientConfigsDow
     message = Em.I18n.t('passiveState.turn' + state.toCapital() + 'For').format(event.context.get('displayName'));
     return App.showConfirmationPopup(function () {
       self.updateComponentPassiveState(event.context, state, message);
-    }, Em.I18n.t('question.sure.maintenance').format(event.context.get('displayName')) );
+    }, Em.I18n.t('question.sure.maintenance').format(state.toLowerCase(), event.context.get('displayName')) );
   },
 
   downloadClientConfigs: function (event) {

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

@@ -442,7 +442,7 @@ Em.I18n.translations = {
   'question.sure.stop':'Are you sure you want to stop {0}?',
   'question.sure.move':'Are you sure you want to move {0}?',
   'question.sure.refresh':'Are you sure you want to restart {0} on {1}?',
-  'question.sure.maintenance':'Are you sure you want to turn on maintenance mode for {0}?',
+  'question.sure.maintenance':'Are you sure you want to turn {0} maintenance mode for {1}?',
   'question.sure.upgrade':'Are you sure you want to upgrade {0}?',
   'question.sure.decommission':'Are you sure you want to decommission {0}?',
   'question.sure.recommission':'Are you sure you want to recommission {0}?',