diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2024-11-03 15:33:43 -0500 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2024-11-03 15:33:43 -0500 |
| commit | 30fa0c4c1faece6b054105fe3cce5107f24a2fa2 (patch) | |
| tree | 6b66eec84a702103f368f6a5ba0e96736fc56fd6 /ui/routes/(login)/login/+page.svelte | |
| parent | f2285a52822fbd1d82a24fe3b51c4343dc9e9ae6 (diff) | |
Svelte 5: go through and use runes in components, pages, and layouts.
Does not use runes in stores (yet).
Diffstat (limited to 'ui/routes/(login)/login/+page.svelte')
| -rw-r--r-- | ui/routes/(login)/login/+page.svelte | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/routes/(login)/login/+page.svelte b/ui/routes/(login)/login/+page.svelte index dba7f5a..77c2d62 100644 --- a/ui/routes/(login)/login/+page.svelte +++ b/ui/routes/(login)/login/+page.svelte @@ -9,7 +9,8 @@ let pending = false; $: disabled = pending; - async function onSubmit() { + async function onSubmit(event) { + event.preventDefault(); pending = true; const response = await logIn(username, password); if (200 <= response.status && response.status < 300) { @@ -21,4 +22,4 @@ } </script> -<LogIn bind:disabled bind:username bind:password on:submit={onSubmit} /> +<LogIn {disabled} bind:username bind:password onsubmit={onSubmit} /> |
