소스 검색

AMBARI-6473. HDFS Service actions shouldn't show Enable NameNode HA option after HA enabled. (onechiporenko)

Oleg Nechiporenko 11 년 전
부모
커밋
3bddf7b7c4
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      ambari-web/app/views/main/service/item.js

+ 4 - 4
ambari-web/app/views/main/service/item.js

@@ -69,10 +69,10 @@ App.MainServiceItemView = Em.View.extend({
         disabled: false
         disabled: false
       },
       },
       TOGGLE_HA: {
       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: {
       MOVE_COMPONENT: {
         action: 'reassignMaster',
         action: 'reassignMaster',