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

hapylestat pushed a commit to branch branch-2.7
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/branch-2.7 by this push:
     new c11c020  AMBARI-25526. Typo in the "NameNode" turn off maintenance 
mode dialog box (dpidhaiets) (#3205) (pidhaietsdp via dgrienko)
c11c020 is described below

commit c11c020f2f9b3327b9ee6e236726bb11e220bc45
Author: pidhaietsdp <[email protected]>
AuthorDate: Tue Jun 30 19:06:12 2020 +0300

    AMBARI-25526. Typo in the "NameNode" turn off maintenance mode dialog box 
(dpidhaiets) (#3205) (pidhaietsdp via dgrienko)
---
 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 4682dc4b..0a31e59 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 652b7c5..d43a0ee 100644
--- a/ambari-web/app/messages.js
+++ b/ambari-web/app/messages.js
@@ -441,7 +441,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}?',

Reply via email to