You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by at...@apache.org on 2018/09/10 13:58:22 UTC

[ambari] branch trunk updated: AMBARI-24612 Host Level Maintenance mode is not working through Ambari UI

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 70b0579  AMBARI-24612 Host Level Maintenance mode is not working through Ambari UI
70b0579 is described below

commit 70b0579d1a66adc9299e3cd9aa44c920406a0da9
Author: Andrii Tkach <at...@apache.org>
AuthorDate: Mon Sep 10 14:20:40 2018 +0300

    AMBARI-24612 Host Level Maintenance mode is not working through Ambari UI
---
 ambari-web/app/views/main/host/details.js | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/ambari-web/app/views/main/host/details.js b/ambari-web/app/views/main/host/details.js
index 3d9e8ed..524142c 100644
--- a/ambari-web/app/views/main/host/details.js
+++ b/ambari-web/app/views/main/host/details.js
@@ -39,7 +39,6 @@ App.MainHostDetailsView = Em.View.extend({
   hasManyClientsWithConfigs: Em.computed.gt('clientsWithConfigs.length', 1),
 
   maintenance: function () {
-    var onOff = this.get('controller.content.isActive') ? "On" : "Off";
     var result = [];
     if (App.isAuthorized("SERVICE.START_STOP")) {
       result = result.concat([
@@ -74,8 +73,8 @@ App.MainHostDetailsView = Em.View.extend({
         action: 'onOffPassiveModeForHost',
         liClass: '',
         cssClass: 'icon-medkit',
-        active: this.get('isActive'),
-        label: this.t('passiveState.turn' + onOff)
+        active: this.get('controller.content.isActive'),
+        label: this.t('passiveState.turn' + (this.get('controller.content.isActive') ? "On" : "Off"))
       });
     }
     if (App.get('isKerberosEnabled') && App.get('supports.regenerateKeytabsOnSingleHost')){