-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
15 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ export default Ember.Component.extend({ | |
return parameter.toLowerCase() === param.name.toLowerCase(); | ||
}); | ||
}, | ||
processQueries: Ember.observer('query,parameters', function () { | ||
processQueries: Ember.observer('query', 'parameters', function () { | ||
if (this.get('queryGeneratedByComponent')) { | ||
this.set('queryGeneratedByComponent', false); | ||
return; | ||
|
@@ -64,7 +64,7 @@ export default Ember.Component.extend({ | |
}); | ||
}); | ||
}), | ||
availableParameters: Ember.computed('parameters,filters.[],[email protected],[email protected]', function () { | ||
availableParameters: Ember.computed('parameters', 'filters.[]', '[email protected]', '[email protected]', function () { | ||
return this.get('parameters').reject(parameter => { | ||
return !parameter.name || !parameter.title || (parameter.allowMultiple === false && this.get('filters').find(filter => { | ||
return filter.get('parameter.name') === parameter.name; | ||
|
@@ -129,7 +129,7 @@ export default Ember.Component.extend({ | |
this.get('onQueryUpdated')(query); | ||
} | ||
}, | ||
canAddNewFilter: Ember.computed('isSelectingParameter,filters.[],[email protected],maxFilters', function () { | ||
canAddNewFilter: Ember.computed('isSelectingParameter', 'filters.[]', '[email protected]', 'maxFilters', function () { | ||
if (this.get('isSelectingParameter')) { | ||
return false; | ||
} | ||
|
@@ -139,7 +139,7 @@ export default Ember.Component.extend({ | |
return !this.get('filters').isAny('isFocused'); | ||
}), | ||
actions: { | ||
newFilter() { | ||
newFilter(event) { | ||
if (event.which === 13) { // Enter key | ||
// Must prevent the filter from auto selecting an option | ||
this.set('didHitEnter', true); | ||
|
@@ -182,4 +182,4 @@ export default Ember.Component.extend({ | |
this.generateQuery(); | ||
}, | ||
} | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters