diff options
| author | Kit La Touche <kit@transneptune.net> | 2024-11-28 21:54:15 -0500 |
|---|---|---|
| committer | Kit La Touche <kit@transneptune.net> | 2024-11-28 21:54:15 -0500 |
| commit | 810ebb811c40b50ddb95bb9559d7515f46ec2052 (patch) | |
| tree | 993abbd49907b399af933a44fb40e2e88c6933a5 /ui/lib/components/CreateChannelForm.svelte | |
| parent | d23685c0ea46c92c75d43b6d6a361597241dd95e (diff) | |
| parent | 5ce6c9f6277c43caf7413cce255af7bdc947e74c (diff) | |
Merge branch 'main' into wip/stylize
Diffstat (limited to 'ui/lib/components/CreateChannelForm.svelte')
| -rw-r--r-- | ui/lib/components/CreateChannelForm.svelte | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/ui/lib/components/CreateChannelForm.svelte b/ui/lib/components/CreateChannelForm.svelte index afa3f78..d50e60d 100644 --- a/ui/lib/components/CreateChannelForm.svelte +++ b/ui/lib/components/CreateChannelForm.svelte @@ -2,17 +2,16 @@ import { createChannel } from '$lib/apiServer'; let name = $state(''); - let pending = false; - let disabled = $derived(pending); + let disabled = $state(false); async function handleSubmit(event) { event.preventDefault(); - pending = true; + disabled = true; const response = await createChannel(name); if (200 <= response.status && response.status < 300) { name = ''; } - pending = false; + disabled = false; } </script> |
