Hide instance switcher if locked
This commit is contained in:
1 parent
11111f2e66
commit
6528ae014f
1 file changed
+19
-18
@@ -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