You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by on...@apache.org on 2014/07/14 14:22:59 UTC
git commit: AMBARI-6473. HDFS Service actions shouldn't show Enable
NameNode HA option after HA enabled. (onechiporenko)
Repository: ambari
Updated Branches:
refs/heads/trunk 64a6c0323 -> 3bddf7b7c
AMBARI-6473. HDFS Service actions shouldn't show Enable NameNode HA option after HA enabled. (onechiporenko)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/3bddf7b7
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/3bddf7b7
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/3bddf7b7
Branch: refs/heads/trunk
Commit: 3bddf7b7c4652c584268040e5e8f2d191db268a9
Parents: 64a6c03
Author: Oleg Nechiporenko <on...@apache.org>
Authored: Mon Jul 14 15:22:42 2014 +0300
Committer: Oleg Nechiporenko <on...@apache.org>
Committed: Mon Jul 14 15:22:42 2014 +0300
----------------------------------------------------------------------
ambari-web/app/views/main/service/item.js | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/3bddf7b7/ambari-web/app/views/main/service/item.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/main/service/item.js b/ambari-web/app/views/main/service/item.js
index 073818c..67d6efc 100644
--- a/ambari-web/app/views/main/service/item.js
+++ b/ambari-web/app/views/main/service/item.js
@@ -69,10 +69,10 @@ App.MainServiceItemView = Em.View.extend({
disabled: false
},
TOGGLE_HA: {
- action: App.isHaEnabled ? 'disableHighAvailability' : 'enableHighAvailability',
- label: App.isHaEnabled ? Em.I18n.t('admin.highAvailability.button.disable') : Em.I18n.t('admin.highAvailability.button.enable'),
- cssClass: App.isHaEnabled ? 'icon-arrow-down' : 'icon-arrow-up',
- isHidden: (App.isHAEnabled && !App.autoRollbackHA)
+ action: App.get('isHaEnabled') ? 'disableHighAvailability' : 'enableHighAvailability',
+ label: App.get('isHaEnabled') ? Em.I18n.t('admin.highAvailability.button.disable') : Em.I18n.t('admin.highAvailability.button.enable'),
+ cssClass: App.get('isHaEnabled') ? 'icon-arrow-down' : 'icon-arrow-up',
+ isHidden: (App.get('isHaEnabled') && !App.get('autoRollbackHA'))
},
MOVE_COMPONENT: {
action: 'reassignMaster',