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

accounts: fix id filtering, make string translatable

This commit is contained in:
Harvey Tindall 2023-06-14 18:57:30 +01:00
parent 9cef626b28
commit b544931ee5
Signed by: hrfee
GPG Key ID: BBC65952848FB1A2
2 changed files with 7 additions and 3 deletions

View File

@ -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}.",

View File

@ -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));