Skip to content

Commit

Permalink
accounts: add dropdown arrow on "Announce" button
Browse files Browse the repository at this point in the history
  • Loading branch information
hrfee committed Jun 26, 2023
1 parent 850bb8f commit baf5e6a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ts/modules/accounts.ts
Expand Up @@ -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) {
Expand Down

0 comments on commit baf5e6a

Please sign in to comment.