Browse Source

AMBARI-3885 Connect config filter to config group tab. (atkach)

atkach 11 years ago
parent
commit
1536c7a582

+ 20 - 0
ambari-web/app/controllers/wizard/step7_controller.js

@@ -84,6 +84,8 @@ App.WizardStep7Controller = Em.Controller.extend({
 
 
   clearStep: function () {
   clearStep: function () {
     this.get('stepConfigs').clear();
     this.get('stepConfigs').clear();
+    this.set('filter', '');
+    this.get('filterColumns').setEach('selected', false);
   },
   },
 
 
   /**
   /**
@@ -236,6 +238,24 @@ App.WizardStep7Controller = Em.Controller.extend({
   manageConfigurationGroup: function () {
   manageConfigurationGroup: function () {
     App.router.get('mainServiceItemController').manageConfigurationGroups(this);
     App.router.get('mainServiceItemController').manageConfigurationGroups(this);
   },
   },
+  /**
+   * Filter text will be located here
+   */
+  filter: '',
+
+  /**
+   * Dropdown menu items in filter combobox
+   */
+  filterColumns: function () {
+    var result = [];
+    for (var i = 1; i < 2; i++) {
+      result.push(Ember.Object.create({
+        name: this.t('common.combobox.dropdown.' + i),
+        selected: false
+      }));
+    }
+    return result;
+  }.property(),
    /**
    /**
    * make some configs visible depending on active services
    * make some configs visible depending on active services
    */
    */

+ 1 - 1
ambari-web/app/templates/common/configs/services_config.hbs

@@ -28,7 +28,7 @@
     {{/if}}
     {{/if}}
   {{/each}}
   {{/each}}
 </ul>
 </ul>
-{{view App.ServiceConfigView isNotEditableBinding="controller.isNotEditable"}}
+{{view App.ServiceConfigView isNotEditableBinding="controller.isNotEditable" filterBinding="controller.filter" columnsBinding="controller.filterColumns"}}
 {{#if isSubmitDisabled}}
 {{#if isSubmitDisabled}}
   <div class="alert">{{t installer.step7.attentionNeeded}}</div>
   <div class="alert">{{t installer.step7.attentionNeeded}}</div>
 {{/if}}
 {{/if}}