FIX: fixes regression with category filtering (#6190)

This commit is contained in:
Joffrey JAFFEUX 2018-07-26 19:08:06 -04:00 committed by GitHub
parent 59684adc43
commit 262beed1cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,7 +52,7 @@ export default Ember.Component.extend({
showAllReportsLink: false,
startDate: null,
endDate: null,
categoryId: null,
category: null,
groupId: null,
showTrend: false,
showHeader: true,
@ -129,6 +129,8 @@ export default Ember.Component.extend({
return displayedModesLength > 1;
},
categoryId: Ember.computed.alias("category.id"),
@computed("currentMode", "model.modes", "forcedModes")
displayedModes(currentMode, reportModes, forcedModes) {
const modes = forcedModes ? forcedModes.split(",") : reportModes;
@ -211,7 +213,7 @@ export default Ember.Component.extend({
actions: {
refreshReport() {
this.attrs.onRefresh({
categoryId: this.get("category.id"),
categoryId: this.get("categoryId"),
groupId: this.get("groupId"),
startDate: this.get("startDate"),
endDate: this.get("endDate")