accounts: fix id filtering, make string translatable

pull/270/head
Harvey Tindall 1 year ago
parent 9cef626b28
commit b544931ee5
No known key found for this signature in database
GPG Key ID: BBC65952848FB1A2

@ -122,7 +122,8 @@
"clickToRemoveFilter": "Click to remove this filter.",
"clearSearch": "Clear search",
"actions": "Actions",
"searchOptions": "Search Options"
"searchOptions": "Search Options",
"matchText": "Match Text"
},
"notifications": {
"changedEmailAddress": "Changed email address of {n}.",

@ -39,6 +39,7 @@ interface announcementTemplate {
var addDiscord: (passData: string) => void;
class user implements User {
private _id = "";
private _row: HTMLTableRowElement;
private _check: HTMLInputElement;
private _username: HTMLSpanElement;
@ -67,7 +68,6 @@ class user implements User {
private _userLabel: string;
private _labelEditButton: HTMLElement;
private _accounts_admin: HTMLInputElement
id = "";
private _selected: boolean;
lastNotifyMethod = (): string => {
@ -690,6 +690,9 @@ class user implements User {
}
});
get id() { return this._id; }
set id(v: string) { this._id = v; }
update = (user: User) => {
this.id = user.id;
@ -1934,7 +1937,7 @@ export class accountsList {
const button = document.createElement("button") as HTMLButtonElement;
button.type = "button";
button.classList.add("button", "~urge", "ml-2");
button.innerHTML = `<i class="ri-equal-line mr-2"></i>Match Text`;
button.innerHTML = `<i class="ri-equal-line mr-2"></i>${window.lang.strings("matchText")}`;
// Position cursor between quotes
button.addEventListener("click", () => fillInFilter(queryName, `""`, -1));

Loading…
Cancel
Save