Browse Source

AMBARI-15734. Empty groups popup for Kerberos in the host configs page (onechiporenko)

Oleg Nechiporenko 9 years ago
parent
commit
8bb0d16a66

+ 1 - 1
ambari-web/app/controllers/main/service/info/configs.js

@@ -46,7 +46,7 @@ App.MainServiceInfoConfigsController = Em.Controller.extend(App.ConfigsLoader, A
    */
   configGroups: function() {
     return this.get('groupsStore').filterProperty('serviceName', this.get('content.serviceName'));
-  }.property('content.serviceName', 'groupsStore'),
+  }.property('content.serviceName', 'groupsStore.@each.serviceName'),
 
   dependentConfigGroups: function() {
     if (this.get('dependentServiceNames.length') === 0) return [];

+ 2 - 2
ambari-web/app/mixins/main/service/configs/config_overridable.js

@@ -349,8 +349,8 @@ App.ConfigOverridable = Em.Mixin.create({
       configGroups: configGroups,
       selectedConfigGroup: selectedGroup,
       disablePrimary: function () {
-        return !(this.get('selectedConfigGroup.name') !== selectedGroup.get('name'));
-      }.property('selectedConfigGroup'),
+        return this.get('selectedConfigGroup.name') === selectedGroup.get('name');
+      }.property('selectedConfigGroup.name'),
       onPrimary: function () {
         var newGroup = this.get('selectedConfigGroup');
         if (selectedGroup.get('isDefault')) {