From a6fb6844f68ab29f45fa4f35dc0ee09359da3b18 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Fri, 8 Sep 2023 14:45:16 +0200 Subject: show connection status --- client-web/source/user/mod.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'client-web/source/user/mod.ts') diff --git a/client-web/source/user/mod.ts b/client-web/source/user/mod.ts index 67b3cd5..267c216 100644 --- a/client-web/source/user/mod.ts +++ b/client-web/source/user/mod.ts @@ -15,6 +15,7 @@ export class User { get display_name() { return this.name ?? "Unknown" } name_el = e("span", {}, this.display_name) + status_el = e("span", { class: ["connection-status", "status-neutral"] }, "") stats_el = e("pre", {}) el = e("div", { class: "user" }) @@ -22,8 +23,8 @@ export class User { const info_el = e("div", { class: "info" }) this.name_el.textContent = this.display_name this.name_el.classList.add("name") - info_el.append(this.name_el, this.stats_el) + info_el.append(this.name_el, this.stats_el, this.status_el) this.el.append(info_el) room.element.append(this.el) } -} \ No newline at end of file +} -- cgit v1.2.3-70-g09d2