From 35c8c86b29559d3d2cefbb9ae3cb7a590e3db3a2 Mon Sep 17 00:00:00 2001 From: Mathium05 Date: Wed, 29 Jul 2026 17:56:18 -0500 Subject: [PATCH] enable disabled features --- src/webpage/index.ts | 2 +- src/webpage/localuser.ts | 23 +++++++++++------------ 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/src/webpage/index.ts b/src/webpage/index.ts index 0a9e61e..e6aa6ff 100644 --- a/src/webpage/index.ts +++ b/src/webpage/index.ts @@ -464,7 +464,7 @@ if (window.location.pathname.startsWith("/channels")) { }, { //TODO re-enable this once polls is merged - visible: () => false, //!!thisUser.channelfocus?.hasPermission("SEND_POLLS"), + visible: () => !!thisUser?.focusChannel?.hasPermission("SEND_POLLS"), }, ); umenu.addButton(I18n.upload(), () => { diff --git a/src/webpage/localuser.ts b/src/webpage/localuser.ts index 4384e75..aea01b7 100644 --- a/src/webpage/localuser.ts +++ b/src/webpage/localuser.ts @@ -2777,21 +2777,20 @@ class Localuser { connectionContainer.appendChild(container); }); - //TODO enable this once domain verification is ready within Harmony - if (false as true) { - const container = document.createElement("div"); - const span = document.createElement("span"); - span.classList.add("conImg", "svgicon"); - span.style.setProperty("mask", `url("/icons/domain.svg")`); - container.append(span); + const container = document.createElement("div"); - container.addEventListener("click", async () => { - this.domainVerification(); - }); + const span = document.createElement("span"); + span.classList.add("conImg", "svgicon"); + span.style.setProperty("mask", `url("/icons/domain.svg")`); + container.append(span); + + container.addEventListener("click", async () => { + this.domainVerification(); + }); + + connectionContainer.appendChild(container); - connectionContainer.appendChild(container); - } serverConnections .filter((_) => actConMap.has(_)) .forEach((_) => {