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",
model() {
return this.store.findFiltered(
'topicList',
{
filter: 'latest',
params: { assigned: this.modelFor('user').get('username_lower') }
return this.store.findFiltered("topicList", {
filter: "latest",
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() {
this.render('user-activity-assigned');
this.render('user-topics-list', { into: 'user-activity-assigned' });
this.render("user-activity-assigned");
this.render("user-topics-list", { into: "user-activity-assigned" });
},
setupController(controller, model) {
this._super(controller, model);
controller.set('model', model);
controller.set("model", model);
},
actions: {