FIX: better handling of category filter deselection (#7468)
This commit is contained in:
parent
d5c9ac7196
commit
75591664e7
|
@ -207,6 +207,7 @@ export default Ember.Component.extend({
|
|||
|
||||
refreshReport() {
|
||||
this.attrs.onRefresh({
|
||||
type: this.get("model.type"),
|
||||
startDate: this.get("startDate"),
|
||||
endDate: this.get("endDate"),
|
||||
filters: this.get("filters.customFilters")
|
||||
|
|
|
@ -10,5 +10,11 @@ export default FilterComponent.extend({
|
|||
@computed("filter.default")
|
||||
category(categoryId) {
|
||||
return Category.findById(categoryId);
|
||||
},
|
||||
|
||||
actions: {
|
||||
onDeselect() {
|
||||
this.applyFilter(this.get("filter.id"), undefined);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
@ -3,4 +3,5 @@
|
|||
value=category
|
||||
castInteger=true
|
||||
onSelectNone=(action "onChange")
|
||||
onDeselect=(action "onDeselect")
|
||||
onSelect=(action "onChange")}}
|
||||
|
|
Loading…
Reference in New Issue