diff --git a/apps/frontend/src/components/ui/NotificationsIndicator.vue b/apps/frontend/src/components/ui/NotificationsIndicator.vue new file mode 100644 index 0000000000..5ad3f13e46 --- /dev/null +++ b/apps/frontend/src/components/ui/NotificationsIndicator.vue @@ -0,0 +1,441 @@ + + + + + diff --git a/apps/frontend/src/helpers/platform-notifications.ts b/apps/frontend/src/helpers/platform-notifications.ts index e151d583a5..70fd2c2a62 100644 --- a/apps/frontend/src/helpers/platform-notifications.ts +++ b/apps/frontend/src/helpers/platform-notifications.ts @@ -133,13 +133,14 @@ export function groupNotifications(notifications: PlatformNotification[]): Platf const current = notifications[i] const next = notifications[i + 1] if (current.body && i < notifications.length - 1 && isSimilar(current, next)) { - current.grouped_notifs = [next] + // Create a copy to avoid mutating the original reactive object + const groupCopy = { ...current, grouped_notifs: [next] } let j = i + 2 while (j < notifications.length && isSimilar(current, notifications[j])) { - current.grouped_notifs.push(notifications[j]) + groupCopy.grouped_notifs.push(notifications[j]) j++ } - grouped.push(current) + grouped.push(groupCopy) i = j - 1 } else { grouped.push(current) diff --git a/apps/frontend/src/layouts/default.vue b/apps/frontend/src/layouts/default.vue index 0990ef8c15..60c1d57a32 100644 --- a/apps/frontend/src/layouts/default.vue +++ b/apps/frontend/src/layouts/default.vue @@ -385,44 +385,7 @@ - - - - +