accounts: add dropdown arrow on "Announce" button

This commit is contained in:
Harvey Tindall 2023-06-26 13:08:34 +01:00
parent 850bb8f44e
commit baf5e6a593
Signed by: hrfee
GPG Key ID: BBC65952848FB1A2
1 changed files with 3 additions and 0 deletions

View File

@ -1404,6 +1404,9 @@ export class accountsList {
this._announceButton.nextElementSibling.children[0].classList.add("unfocused");
return;
}
if (list.length > 0) {
this._announceButton.innerHTML = `${window.lang.strings("announce")} <i class="ml-2 ri-arrow-drop-down-line"></i>`;
}
const dList = document.getElementById("accounts-announce-templates") as HTMLDivElement;
dList.textContent = '';
for (let name of list) {