mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 10:42:45 +08:00
FIX: fixes regression with category filtering (#6190)
This commit is contained in:
parent
59684adc43
commit
262beed1cf
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue
Block a user