aboutsummaryrefslogtreecommitdiff
path: root/client-web/source/room_watches.ts
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-01-27 19:59:39 +0100
committermetamuffin <metamuffin@disroot.org>2024-01-27 19:59:39 +0100
commit91259369b2b87eb647e9743c874d7e58894149c1 (patch)
treec717d3c4fb3322bb559a50eab1a2331f9c351a70 /client-web/source/room_watches.ts
parent0d8a3082fe32e9dd89deea9f051f6e53df591646 (diff)
downloadkeks-meet-91259369b2b87eb647e9743c874d7e58894149c1.tar
keks-meet-91259369b2b87eb647e9743c874d7e58894149c1.tar.bz2
keks-meet-91259369b2b87eb647e9743c874d7e58894149c1.tar.zst
handle room joins without page reload.
Diffstat (limited to 'client-web/source/room_watches.ts')
-rw-r--r--client-web/source/room_watches.ts9
1 files changed, 8 insertions, 1 deletions
diff --git a/client-web/source/room_watches.ts b/client-web/source/room_watches.ts
index 3e41507..2e8d2f9 100644
--- a/client-web/source/room_watches.ts
+++ b/client-web/source/room_watches.ts
@@ -70,7 +70,14 @@ export function ui_room_watches(conn: SignalingConnection): HTMLElement {
update_watches()
input.value = ""
}
- }, "Add")
+ }, "Add"),
+ e("button", {
+ async onclick() {
+ if (!conn.room) return
+ await add_watch(conn.room)
+ update_watches()
+ }
+ }, "Add current room")
))
}
}