diff options
Diffstat (limited to 'client-web/source/room_watches.ts')
-rw-r--r-- | client-web/source/room_watches.ts | 9 |
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") )) } } |