Browse Source

AMBARI-4982. Carets are reversed for Custom log4j sections.(xiwang)

Xi Wang 11 năm trước cách đây
mục cha
commit
81c1a416cc
1 tập tin đã thay đổi với 3 bổ sung2 xóa
  1. 3 2
      ambari-web/app/views/common/configs/services_config.js

+ 3 - 2
ambari-web/app/views/common/configs/services_config.js

@@ -403,11 +403,13 @@ App.ServiceConfigsByCategoryView = Ember.View.extend({
   }.property('category.canAddProperty', 'filteredCategoryConfigs.length'),
 
   didInsertElement: function () {
-    var isCollapsed = (this.get('category.name').indexOf('Advanced') != -1 || this.get('category.name').indexOf('CapacityScheduler') != -1);
+    var isCollapsed = this.get('category.isCollapsed') == undefined ? (this.get('category.name').indexOf('Advanced') != -1 || this.get('category.name').indexOf('CapacityScheduler') != -1) : this.get('category.isCollapsed');
     var self = this;
     this.set('category.isCollapsed', isCollapsed);
     if (isCollapsed) {
       this.$('.accordion-body').hide();
+    } else {
+      this.$('.accordion-body').show();
     }
     this.updateReadOnlyFlags();
     Em.run.next(function() {
@@ -416,7 +418,6 @@ App.ServiceConfigsByCategoryView = Ember.View.extend({
   },
 
   /**
-   * Should we show current category accordion-body, based on category.isCollapsed property.
    * If added/removed a serverConfigObject, this property got updated.
    * Without this property, all serviceConfigs Objects will show up even if some was collapsed before.
    */