Don't show 'Change instance' when locked to instance

This commit is contained in:
pieterdd committed 2023-10-17 20:28:21 +02:00
1 parent 6528ae014f
commit 95a9755c83
1 file changed
+7 -5
+7 -5
View File
@@ -18,7 +18,7 @@
import { flip } from 'svelte/animate'
import { expoOut } from 'svelte/easing'
import { Button } from 'mono-svelte'
import { DEFAULT_INSTANCE_URL } from '$lib/instance.js'
import { DEFAULT_INSTANCE_URL, LINKED_INSTANCE_URL } from '$lib/instance.js'
export let route = ''
</script>
@@ -91,9 +91,11 @@
<Icon mini src={Identification} size="20" />
<span slot="label">Sign Up</span>
</SidebarButton>
<SidebarButton href="/accounts" title="Change Instance">
<Icon mini src={ServerStack} size="20" />
<span slot="label">Change instance</span>
</SidebarButton>
{#if LINKED_INSTANCE_URL === undefined}
<SidebarButton href="/accounts" title="Change Instance">
<Icon mini src={ServerStack} size="20" />
<span slot="label">Change instance</span>
</SidebarButton>
{/if}
{/if}
</nav>