summaryrefslogtreecommitdiff
path: root/ui/lib/components
diff options
context:
space:
mode:
Diffstat (limited to 'ui/lib/components')
-rw-r--r--ui/lib/components/Channel.svelte8
-rw-r--r--ui/lib/components/LogOut.svelte2
-rw-r--r--ui/lib/components/MessageInput.svelte3
3 files changed, 6 insertions, 7 deletions
diff --git a/ui/lib/components/Channel.svelte b/ui/lib/components/Channel.svelte
index c73340f..4f908d2 100644
--- a/ui/lib/components/Channel.svelte
+++ b/ui/lib/components/Channel.svelte
@@ -2,13 +2,13 @@
let { id, name, active, hasUnreads } = $props();
</script>
-<a href="/ch/{id}">
- <li class:active>
+<li class:active>
+ <a href="/ch/{id}">
{#if hasUnreads}
<span class="badge has-unreads">❦</span>
{:else}
<span class="badge has-no-unreads">¶</span>
{/if}
<span>{name}</span>
- </li>
-</a>
+ </a>
+</li>
diff --git a/ui/lib/components/LogOut.svelte b/ui/lib/components/LogOut.svelte
index b699cfd..1cb8fb5 100644
--- a/ui/lib/components/LogOut.svelte
+++ b/ui/lib/components/LogOut.svelte
@@ -8,7 +8,7 @@
const response = await logOut();
if (200 <= response.status && response.status < 300) {
currentUser.set(null);
- goto('/login');
+ await goto('/login');
}
}
</script>
diff --git a/ui/lib/components/MessageInput.svelte b/ui/lib/components/MessageInput.svelte
index 5869654..1eb1d7b 100644
--- a/ui/lib/components/MessageInput.svelte
+++ b/ui/lib/components/MessageInput.svelte
@@ -24,7 +24,6 @@
</script>
<form bind:this={form} onsubmit={onSubmit}>
- <textarea onkeydown={onKeyDown} bind:value {disabled} type="search" placeholder="Say something..."
- ></textarea>
+ <textarea onkeydown={onKeyDown} bind:value {disabled} placeholder="Say something..."></textarea>
<button type="submit">&raquo;</button>
</form>