From 7c629a2f265c5b36086cd102d45329fb8dbb4ab4 Mon Sep 17 00:00:00 2001 From: DecDuck Date: Sun, 21 Jun 2026 19:32:54 +1000 Subject: [PATCH] Add #269 --- server/layouts/admin.vue | 65 +++++++++++++++++++++++++++++++--------- 1 file changed, 51 insertions(+), 14 deletions(-) diff --git a/server/layouts/admin.vue b/server/layouts/admin.vue index 6a88633f..19087df2 100644 --- a/server/layouts/admin.vue +++ b/server/layouts/admin.vue @@ -126,16 +126,50 @@
- +
+ + +
+ +
    +
  1. + + + + + + + + + + + + + +
  2. + +
+
@@ -156,6 +190,9 @@ import { DialogPanel, TransitionChild, TransitionRoot, + Menu, + MenuButton, + MenuItems, } from "@headlessui/vue"; import { Bars3Icon, @@ -168,7 +205,7 @@ import { } from "@heroicons/vue/24/outline"; import type { NavigationItem } from "~/composables/types"; import { useCurrentNavigationIndex } from "~/composables/current-page-engine"; -import { ArrowLeftIcon } from "@heroicons/vue/16/solid"; +import { ArrowLeftIcon, BellIcon } from "@heroicons/vue/16/solid"; import { XMarkIcon } from "@heroicons/vue/24/solid"; import type { Settings } from "~/server/internal/utils/types"; @@ -219,10 +256,10 @@ const navigation: Array = [ }, ]; -// const notifications = useNotifications(); -// const unreadNotifications = computed(() => -// notifications.value.filter((e) => !e.read) -// ); +const notifications = useNotifications(); +const unreadNotifications = computed(() => + notifications.value.filter((e) => !e.read), +); const currentNavigationIndex = useCurrentNavigationIndex(navigation);