2 files changed
+26
-23
No files matched your search
@@ -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>
|
||||||
<SidebarButton href="/accounts" title="Change Instance">
|
{#if LINKED_INSTANCE_URL === undefined}
|
||||||
<Icon mini src={ServerStack} size="20" />
|
<SidebarButton href="/accounts" title="Change Instance">
|
||||||
<span slot="label">Change instance</span>
|
<Icon mini src={ServerStack} size="20" />
|
||||||
</SidebarButton>
|
<span slot="label">Change instance</span>
|
||||||
|
</SidebarButton>
|
||||||
|
{/if}
|
||||||
{/if}
|
{/if}
|
||||||
</nav>
|
</nav>
|
||||||
@@ -158,24 +158,25 @@
|
|||||||
Sign up
|
Sign up
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-row font-normal gap-2">
|
{#if LINKED_INSTANCE_URL === undefined}
|
||||||
<TextInput
|
<div class="flex flex-row font-normal gap-2">
|
||||||
label="Guest instance"
|
<TextInput
|
||||||
on:change={changeGuestInstance}
|
label="Guest instance"
|
||||||
placeholder="Instance URL"
|
on:change={changeGuestInstance}
|
||||||
bind:value={newInstance}
|
placeholder="Instance URL"
|
||||||
disabled={LINKED_INSTANCE_URL != undefined}
|
bind:value={newInstance}
|
||||||
/>
|
/>
|
||||||
<Button
|
<Button
|
||||||
color="primary"
|
color="primary"
|
||||||
class="h-max self-end"
|
class="h-max self-end"
|
||||||
size="lg"
|
size="lg"
|
||||||
{loading}
|
{loading}
|
||||||
disabled={loading || LINKED_INSTANCE_URL != undefined}
|
disabled={loading}
|
||||||
>
|
>
|
||||||
Change
|
Change
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{:else}
|
{:else}
|
||||||
|
|||||||
Reference in new issue
Block a user