Sfoglia il codice sorgente

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

Oleg Nechiporenko 11 anni fa
parent
commit
3bddf7b7c4
1 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  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
       },
       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',