diff options
author | metamuffin <metamuffin@disroot.org> | 2023-09-08 14:45:16 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2023-09-08 14:45:16 +0200 |
commit | a6fb6844f68ab29f45fa4f35dc0ee09359da3b18 (patch) | |
tree | 16bf8c2f84e7e72259b9a811b9c5bf80b66047e2 /client-web/source/user/mod.ts | |
parent | 83e409a979d722db9ad44fc9d22945f23a18e712 (diff) | |
download | keks-meet-a6fb6844f68ab29f45fa4f35dc0ee09359da3b18.tar keks-meet-a6fb6844f68ab29f45fa4f35dc0ee09359da3b18.tar.bz2 keks-meet-a6fb6844f68ab29f45fa4f35dc0ee09359da3b18.tar.zst |
show connection status
Diffstat (limited to 'client-web/source/user/mod.ts')
-rw-r--r-- | client-web/source/user/mod.ts | 5 |
1 files changed, 3 insertions, 2 deletions
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 +} |