diff --git a/src/views/Notifications.vue b/src/views/Notifications.vue
index cc132bb..3fbbca8 100644
--- a/src/views/Notifications.vue
+++ b/src/views/Notifications.vue
@@ -4,13 +4,13 @@
-
+
{
];
});
-const allNotifications = computed(() => {
- return Object.values(notifications.value);
+const sortedNotifications = computed(() => {
+ const allNotifications = [
+ ...Object.values(notifications.value.comments || {}),
+ ...Object.values(notifications.value.content || {}),
+ ];
+
+ const sortedNotifications = allNotifications.sort((a, b) => {
+ dayjs(b.date).diff(dayjs(a.date));
+ });
+
+ return sortedNotifications;
});
function changeTab(newValue) {
currentTab.value = newValue;
}
-
-const isEmpty = computed(() => {
- return notifications.value.length === 0;
-});