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((_) => {