|
@@ -179,20 +179,32 @@ App.WizardStep7Controller = Em.Controller.extend({
|
|
|
*/
|
|
|
filter: '',
|
|
|
|
|
|
+ /**
|
|
|
+ * List of filters for config properties to populate filter combobox
|
|
|
+ */
|
|
|
+ propertyFilters: [
|
|
|
+ {
|
|
|
+ attributeName: 'isOverridden',
|
|
|
+ caption: 'common.combobox.dropdown.overridden'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ attributeName: 'isFinal',
|
|
|
+ caption: 'common.combobox.dropdown.final'
|
|
|
+ }
|
|
|
+ ],
|
|
|
+
|
|
|
/**
|
|
|
* Dropdown menu items in filter combobox
|
|
|
- * @type {Ember.Object[]}
|
|
|
*/
|
|
|
filterColumns: function () {
|
|
|
- var result = [];
|
|
|
- for (var i = 1; i < 2; i++) {
|
|
|
- result.push(Em.Object.create({
|
|
|
- name: this.t('common.combobox.dropdown.' + i),
|
|
|
+ return this.get('propertyFilters').map(function(filter) {
|
|
|
+ return Ember.Object.create({
|
|
|
+ attributeName: filter.attributeName,
|
|
|
+ name: this.t(filter.caption),
|
|
|
selected: false
|
|
|
- }));
|
|
|
- }
|
|
|
- return result;
|
|
|
- }.property(),
|
|
|
+ })
|
|
|
+ }, this);
|
|
|
+ }.property('propertyFilters'),
|
|
|
|
|
|
/**
|
|
|
* Clear controller's properties:
|