1
0
mirror of https://github.com/hrfee/jfa-go.git synced 2024-12-22 09:00:10 +00:00

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

View File

@ -1404,6 +1404,9 @@ export class accountsList {
this._announceButton.nextElementSibling.children[0].classList.add("unfocused"); this._announceButton.nextElementSibling.children[0].classList.add("unfocused");
return; 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; const dList = document.getElementById("accounts-announce-templates") as HTMLDivElement;
dList.textContent = ''; dList.textContent = '';
for (let name of list) { for (let name of list) {