diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2024-11-25 19:50:01 -0500 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2024-11-25 19:50:01 -0500 |
| commit | e8d672a3f5a1fff1b5fb51857f42ced7cc8aa3a7 (patch) | |
| tree | 9d205b2898d1c3f94c5c17ce3debca481f5d3e02 /ui/lib/components/CreateChannelForm.svelte | |
| parent | 2f6adda366dc372609f214682ca866c104fc278e (diff) | |
| parent | c2f711c56a3bc736cf507a920dee0915b69af77e (diff) | |
Merge remote-tracking branch 'origin/prop/state'
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> |
