diff --git a/app/assets/javascripts/admin/components/admin-report.js.es6 b/app/assets/javascripts/admin/components/admin-report.js.es6 index 0d8ce638147..a638a8100e8 100644 --- a/app/assets/javascripts/admin/components/admin-report.js.es6 +++ b/app/assets/javascripts/admin/components/admin-report.js.es6 @@ -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") diff --git a/app/assets/javascripts/admin/components/report-filters/category.js.es6 b/app/assets/javascripts/admin/components/report-filters/category.js.es6 index d1c910ad18d..7efdd4a465b 100644 --- a/app/assets/javascripts/admin/components/report-filters/category.js.es6 +++ b/app/assets/javascripts/admin/components/report-filters/category.js.es6 @@ -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); + } } }); diff --git a/app/assets/javascripts/admin/templates/components/report-filters/category.hbs b/app/assets/javascripts/admin/templates/components/report-filters/category.hbs index 9ad96c6be60..94aa60f7d05 100644 --- a/app/assets/javascripts/admin/templates/components/report-filters/category.hbs +++ b/app/assets/javascripts/admin/templates/components/report-filters/category.hbs @@ -3,4 +3,5 @@ value=category castInteger=true onSelectNone=(action "onChange") + onDeselect=(action "onDeselect") onSelect=(action "onChange")}}