FIX: show suppressed categories in assign list

This commit is contained in:
Sam 2018-07-23 17:26:05 +10:00
parent ffd4bd1a4a
commit d58aa482ba
1 changed files with 10 additions and 9 deletions

View File

@ -5,23 +5,24 @@ export default UserTopicListRoute.extend({
noContentHelpKey: "discourse_assigns.no_assigns", noContentHelpKey: "discourse_assigns.no_assigns",
model() { model() {
return this.store.findFiltered( return this.store.findFiltered("topicList", {
'topicList', filter: "latest",
{ params: {
filter: 'latest', assigned: this.modelFor("user").get("username_lower"),
params: { assigned: this.modelFor('user').get('username_lower') } // core is a bit odd here and is not sending an array, should be fixed
exclude_category_ids: [-1]
} }
); });
}, },
renderTemplate() { renderTemplate() {
this.render('user-activity-assigned'); this.render("user-activity-assigned");
this.render('user-topics-list', { into: 'user-activity-assigned' }); this.render("user-topics-list", { into: "user-activity-assigned" });
}, },
setupController(controller, model) { setupController(controller, model) {
this._super(controller, model); this._super(controller, model);
controller.set('model', model); controller.set("model", model);
}, },
actions: { actions: {