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

wuzhiguo 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 4ca49bbd7a AMBARI-25526: Typo in the "NameNode" turn off maintenance 
mode dialog box (#3542)
4ca49bbd7a is described below

commit 4ca49bbd7a60a8edd93f621a27c585ecafaf7e7f
Author: Yu Hou <[email protected]>
AuthorDate: Sun Nov 20 01:38:50 2022 +0800

    AMBARI-25526: Typo in the "NameNode" turn off maintenance mode dialog box 
(#3542)
---
 ambari-web/app/controllers/main/host/details.js | 2 +-
 ambari-web/app/messages.js                      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ambari-web/app/controllers/main/host/details.js 
b/ambari-web/app/controllers/main/host/details.js
index 25d0255d37..cc5360d129 100644
--- a/ambari-web/app/controllers/main/host/details.js
+++ b/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) {
diff --git a/ambari-web/app/messages.js b/ambari-web/app/messages.js
index e8b4d27948..78626c1989 100644
--- a/ambari-web/app/messages.js
+++ b/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}?',


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to