diff --git a/changelog/unreleased/enhancement-notification-bell b/changelog/unreleased/enhancement-notification-bell index 888f13d813d..87c06f2c2ca 100644 --- a/changelog/unreleased/enhancement-notification-bell +++ b/changelog/unreleased/enhancement-notification-bell @@ -1,8 +1,8 @@ -Enhancement: Rework notifications +Enhancement: Rework notification bell We're now showing the notification bell based on whether the server supports notifications. Previously it was hidden when there were no notifications. We've added a badge that displays the amount of new notifications. https://github.com/owncloud/web/pull/8450 https://github.com/owncloud/web/pull/8454 -https://github.com/owncloud/web/issues/8452 \ No newline at end of file +https://github.com/owncloud/web/issues/8452 diff --git a/changelog/unreleased/enhancement-notifications-ocis b/changelog/unreleased/enhancement-notifications-ocis index 1f9db3d4dc1..41257de65aa 100644 --- a/changelog/unreleased/enhancement-notifications-ocis +++ b/changelog/unreleased/enhancement-notifications-ocis @@ -4,5 +4,7 @@ Notifications now work when running oCIS as backend. https://github.com/owncloud/web/pull/8518 https://github.com/owncloud/web/pull/8582 +https://github.com/owncloud/web/pull/8595 https://github.com/owncloud/web/issues/8519 https://github.com/owncloud/web/issues/8520 +https://github.com/owncloud/web/issues/8593 diff --git a/packages/web-runtime/src/components/Topbar/Notifications.vue b/packages/web-runtime/src/components/Topbar/Notifications.vue index 070fdbbe5f4..fee60c66d17 100644 --- a/packages/web-runtime/src/components/Topbar/Notifications.vue +++ b/packages/web-runtime/src/components/Topbar/Notifications.vue @@ -191,7 +191,8 @@ export default { const { ocs: { data = [] } } = yield response.json() - notifications.value = data || [] + notifications.value = + data?.sort((a, b) => (new Date(b.datetime) as any) - (new Date(a.datetime) as any)) || [] } catch (e) { console.error(e) } finally {