replace state when navigating from space menu

This commit is contained in:
Jon Staab
2025-02-11 11:42:49 -08:00
parent d8cf48381b
commit 622214713b
4 changed files with 24 additions and 13 deletions
+6 -2
View File
@@ -10,15 +10,19 @@
url: any
room: any
notify?: boolean
replaceState?: boolean
}
const {url, room, notify = false}: Props = $props()
const {url, room, notify = false, replaceState = false}: Props = $props()
const path = makeRoomPath(url, room)
const channel = deriveChannel(url, room)
</script>
<SecondaryNavItem href={path} notification={notify ? $notifications.has(path) : false}>
<SecondaryNavItem
href={path}
{replaceState}
notification={notify ? $notifications.has(path) : false}>
{#if channelIsLocked($channel)}
<Icon icon="lock" size={4} />
{:else}