diff options
| author | Kit La Touche <kit@transneptune.net> | 2024-10-09 15:32:52 -0400 |
|---|---|---|
| committer | Kit La Touche <kit@transneptune.net> | 2024-10-09 15:32:52 -0400 |
| commit | bd53a51af835478d23bef4772ce7e50553dc3fdf (patch) | |
| tree | 3f190a47b9f704c412d0ff684b959abf003b8e5b /hi-ui/src/lib/CreateChannelForm.svelte | |
| parent | dd62b823e01934a0f841256fdb17b551091896bf (diff) | |
Move a lot of things around
Diffstat (limited to 'hi-ui/src/lib/CreateChannelForm.svelte')
| -rw-r--r-- | hi-ui/src/lib/CreateChannelForm.svelte | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/hi-ui/src/lib/CreateChannelForm.svelte b/hi-ui/src/lib/CreateChannelForm.svelte deleted file mode 100644 index 8910b4d..0000000 --- a/hi-ui/src/lib/CreateChannelForm.svelte +++ /dev/null @@ -1,23 +0,0 @@ -<script> - import { createChannel } from '../apiServer'; - - let name = ''; - let disabled = false; - - async function handleSubmit(event) { - disabled = true; - const response = await createChannel(name); - if (200 <= response.status && response.status < 300) { - name = ''; - } - disabled = false; - } -</script> - -<form on:submit|preventDefault={handleSubmit} class="form form-row flex-nowrap"> - <input type="text" placeholder="create channel" bind:value={name} disabled={disabled} class="input flex-auto h-6 w-9/12" /> - <button type="submit" class="flex-none w-6 h-6">➕</button> -</form> - -<style> -</style> |
