Hide instance switcher if locked

This commit is contained in:
pieterdd committed 2023-10-17 20:22:14 +02:00
1 parent 11111f2e66
commit 6528ae014f
1 file changed
+3 -2
+3 -2
View File
@@ -158,24 +158,25 @@
Sign up Sign up
</Button> </Button>
</div> </div>
{#if LINKED_INSTANCE_URL === undefined}
<div class="flex flex-row font-normal gap-2"> <div class="flex flex-row font-normal gap-2">
<TextInput <TextInput
label="Guest instance" label="Guest instance"
on:change={changeGuestInstance} on:change={changeGuestInstance}
placeholder="Instance URL" placeholder="Instance URL"
bind:value={newInstance} bind:value={newInstance}
disabled={LINKED_INSTANCE_URL != undefined}
/> />
<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}