Notifications by categories


(Alexander) #1

Hello!

In profile preferences, category section (/u/*/preferences/categories), there is a choice of the same category for all notification modes i.e. category blacklist (blacklist=selectedCategories) does not work for category-selector component.

So, it may be necessary to add a computed value to /app/assets/javascripts/discourse/controllers/preferences/categories.js.es6 controller to solve this problem:

@computed("model.watchedCategories", "model.trackedCategories", "model.mutedCategories")
selectedCategories(watched, tracked, muted) {
  return [].concat(watched, tracked, muted);
},

(Joffrey Jaffeux) #3

It’s not a regression, if I remember correctly it was already the case before select-kit (or maybe I’m confused with another screen). However I do agree with you it shouldn’t show a category if it has already been used.


(Joffrey Jaffeux) #4

Should be fixed by:

While working on this I discovered that the categories notifications has been extracted from preferences panel, could be wrong but I think it has been broken since April when the preference tab has been reworked.

Thanks for reporting this.


(Joffrey Jaffeux) #5

This topic was automatically closed after 2 days. New replies are no longer allowed.