diff --git a/app/assets/javascripts/discourse/app/components/user-menu/likes-notifications-list.js b/app/assets/javascripts/discourse/app/components/user-menu/likes-notifications-list.js index d8e9cfd0c25..2e2ad287efc 100644 --- a/app/assets/javascripts/discourse/app/components/user-menu/likes-notifications-list.js +++ b/app/assets/javascripts/discourse/app/components/user-menu/likes-notifications-list.js @@ -1,13 +1,6 @@ import UserMenuNotificationsList from "discourse/components/user-menu/notifications-list"; export default class UserMenuLikesNotificationsList extends UserMenuNotificationsList { - get filterByTypes() { - // TODO(osama): reaction is a type used by the reactions plugin, but it's - // added here temporarily unitl we add a plugin API for extending - // filterByTypes in lists - return ["liked", "liked_consolidated", "reaction"]; - } - get dismissTypes() { return this.filterByTypes; } diff --git a/app/assets/javascripts/discourse/app/components/user-menu/mentions-notifications-list.js b/app/assets/javascripts/discourse/app/components/user-menu/mentions-notifications-list.js index 2a7a4396e87..8cbfabb93ac 100644 --- a/app/assets/javascripts/discourse/app/components/user-menu/mentions-notifications-list.js +++ b/app/assets/javascripts/discourse/app/components/user-menu/mentions-notifications-list.js @@ -1,10 +1,6 @@ import UserMenuNotificationsList from "discourse/components/user-menu/notifications-list"; export default class UserMenuMentionsNotificationsList extends UserMenuNotificationsList { - get filterByTypes() { - return ["mentioned"]; - } - get dismissTypes() { return this.filterByTypes; } diff --git a/app/assets/javascripts/discourse/app/components/user-menu/menu.hbs b/app/assets/javascripts/discourse/app/components/user-menu/menu.hbs index ac8795a3a92..3f9bd5e972b 100644 --- a/app/assets/javascripts/discourse/app/components/user-menu/menu.hbs +++ b/app/assets/javascripts/discourse/app/components/user-menu/menu.hbs @@ -6,7 +6,7 @@ class="quick-access-panel" tabindex="-1" aria-labelledby={{concat "user-menu-button-" this.currentTabId}}> - {{component this.currentPanelComponent closeUserMenu=@closeUserMenu}} + {{component this.currentPanelComponent closeUserMenu=@closeUserMenu filterByTypes=this.currentNotificationTypes}}