# Notifications by categories

**URL:** https://meta.discourse.org/t/notifications-by-categories/76032
**Category:** Bug
**Created:** [2017年十二月14日 13:02 UTC](https://meta.discourse.org/t/notifications-by-categories/76032 "2017-12-14T13:02:31Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![youwiki](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/youwiki/32/89936_2.png) [@youwiki](https://meta.discourse.org/u/youwiki)
#### Post date: [2017年十二月14日 13:02 UTC](https://meta.discourse.org/t/notifications-by-categories/76032/1 "2017-12-14T13:02:31Z")

</div>

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:

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

```

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [2017年十二月14日 13:18 UTC](https://meta.discourse.org/t/notifications-by-categories/76032/3 "2017-12-14T13:18:04Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [2017年十二月14日 13:42 UTC](https://meta.discourse.org/t/notifications-by-categories/76032/4 "2017-12-14T13:42:19Z")

</div>

Should be fixed by:

[https://github.com/discourse/discourse/commit/3090c016d08f0c21a48772e8a35a6a6a345afbf0](https://github.com/discourse/discourse/commit/3090c016d08f0c21a48772e8a35a6a6a345afbf0)

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.

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [2017年十二月16日 17:00 UTC](https://meta.discourse.org/t/notifications-by-categories/76032/5 "2017-12-16T17:00:00Z")

</div>

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