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
+19 -18
+19 -18
View File
@@ -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}