FIX: simplify filters on admin-report component (#6193)

This commit is contained in:
Joffrey JAFFEUX
2018-07-27 01:22:00 -04:00
committed by GitHub
parent 6740631fdb
commit b7d1864d0a
7 changed files with 31 additions and 28 deletions

View File

@ -50,6 +50,7 @@ export default Ember.Component.extend({
reportOptions: null,
forcedModes: null,
showAllReportsLink: false,
filters: null,
startDate: null,
endDate: null,
category: null,
@ -77,7 +78,7 @@ export default Ember.Component.extend({
didReceiveAttrs() {
this._super(...arguments);
const state = this.get("filteringState") || {};
const state = this.get("filters") || {};
this.setProperties({
category: Category.findById(state.categoryId),
groupId: state.groupId,