Simplify and optimize notifications

This commit is contained in:
Jon Staab
2024-12-16 11:24:10 -08:00
parent 85e5413951
commit 3d3ffaf406
12 changed files with 120 additions and 151 deletions
@@ -3,7 +3,7 @@
import PrimaryNavItem from "@lib/components/PrimaryNavItem.svelte"
import SpaceAvatar from "@app/components/SpaceAvatar.svelte"
import {makeSpacePath} from "@app/routes"
import {spacesNotifications} from "@app/notifications"
import {notifications} from "@app/notifications"
export let url
@@ -14,6 +14,6 @@
title={displayRelayUrl(url)}
href={path}
class="tooltip-right"
notification={$spacesNotifications.includes(path)}>
notification={$notifications.has(path)}>
<SpaceAvatar {url} />
</PrimaryNavItem>