Don't show 'Change instance' when locked to instance
This commit is contained in:
1 parent
6528ae014f
commit
95a9755c83
1 file changed
+3
-1
@@ -18,7 +18,7 @@
|
|||||||
import { flip } from 'svelte/animate'
|
import { flip } from 'svelte/animate'
|
||||||
import { expoOut } from 'svelte/easing'
|
import { expoOut } from 'svelte/easing'
|
||||||
import { Button } from 'mono-svelte'
|
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 = ''
|
export let route = ''
|
||||||
</script>
|
</script>
|
||||||
@@ -91,9 +91,11 @@
|
|||||||
<Icon mini src={Identification} size="20" />
|
<Icon mini src={Identification} size="20" />
|
||||||
<span slot="label">Sign Up</span>
|
<span slot="label">Sign Up</span>
|
||||||
</SidebarButton>
|
</SidebarButton>
|
||||||
|
{#if LINKED_INSTANCE_URL === undefined}
|
||||||
<SidebarButton href="/accounts" title="Change Instance">
|
<SidebarButton href="/accounts" title="Change Instance">
|
||||||
<Icon mini src={ServerStack} size="20" />
|
<Icon mini src={ServerStack} size="20" />
|
||||||
<span slot="label">Change instance</span>
|
<span slot="label">Change instance</span>
|
||||||
</SidebarButton>
|
</SidebarButton>
|
||||||
{/if}
|
{/if}
|
||||||
|
{/if}
|
||||||
</nav>
|
</nav>
|
||||||
Reference in new issue
Block a user