Validate space connection before joining

This commit is contained in:
Jon Staab
2024-10-10 14:33:50 -07:00
parent 821a6a095f
commit 0d394bbc3b
18 changed files with 204 additions and 88 deletions
+7 -3
View File
@@ -3,6 +3,8 @@
import Icon from "@lib/components/Icon.svelte"
import Button from "@lib/components/Button.svelte"
import Spinner from "@lib/components/Spinner.svelte"
import ModalHeader from "@lib/components/ModalHeader.svelte"
import ModalFooter from "@lib/components/ModalFooter.svelte"
const back = () => history.back()
@@ -23,8 +25,10 @@
</script>
<form class="column gap-4" on:submit|preventDefault={logout}>
<h1 class="heading">Are you sure you want to log out?</h1>
<div class="flex flex-row items-center justify-between gap-4">
<ModalHeader>
<div slot="title">Are you sure you want to log out?</div>
</ModalHeader>
<ModalFooter>
<Button class="btn btn-link" on:click={back}>
<Icon icon="alt-arrow-left" />
Go back
@@ -32,5 +36,5 @@
<Button type="submit" class="btn btn-primary" disabled={loading}>
<Spinner {loading}>Log Out</Spinner>
</Button>
</div>
</ModalFooter>
</form>