FIX: use grouped_unread_notifications (#373)
Use `grouped_unread_notifications` instead of `grouped_unread_high_priority_notifications` Related PR: https://github.com/discourse/discourse/pull/18132
This commit is contained in:
parent
030d349aa0
commit
0d586bb93c
|
@ -71,7 +71,7 @@ export default class UserMenuAssignNotificationsList extends UserMenuNotificatio
|
|||
}
|
||||
|
||||
get _unreadAssignedNotificationsCount() {
|
||||
const key = `grouped_unread_high_priority_notifications.${this.site.notification_types.assigned}`;
|
||||
const key = `grouped_unread_notifications.${this.site.notification_types.assigned}`;
|
||||
// we're retrieving the value with get() so that Ember tracks the property
|
||||
// and re-renders the UI when it changes.
|
||||
// we can stop using `get()` when the User model is refactored into native
|
||||
|
|
|
@ -234,7 +234,7 @@ acceptance("Discourse Assign | experimental user menu", function (needs) {
|
|||
needs.user({
|
||||
redesigned_user_menu_enabled: true,
|
||||
can_assign: true,
|
||||
grouped_unread_high_priority_notifications: {
|
||||
grouped_unread_notifications: {
|
||||
34: 173, // assigned notification type
|
||||
},
|
||||
});
|
||||
|
@ -286,7 +286,7 @@ acceptance("Discourse Assign | experimental user menu", function (needs) {
|
|||
);
|
||||
|
||||
updateCurrentUser({
|
||||
grouped_unread_high_priority_notifications: {},
|
||||
grouped_unread_notifications: {},
|
||||
});
|
||||
|
||||
assert.notOk(
|
||||
|
|
Loading…
Reference in New Issue