Auto reload tables on tab change

This commit is contained in:
Melon 2023-12-13 12:55:33 +00:00
parent 47bf91e7ff
commit 69f7b1a7c3
Signed by: melon
GPG Key ID: 6C9D970C50D26A25
3 changed files with 3 additions and 3 deletions

View File

@ -29,7 +29,7 @@
return p.endsWith(domain);
}
let promiseForTable: Promise<void> = Object.entries($certsTable).length === 0 ? reloadTable() : reloadTable();
let promiseForTable: Promise<void> = reloadTable();
async function reloadTable(): Promise<void> {
let f = await apiRequest(apiOrchid + "/owned");

View File

@ -21,7 +21,7 @@
return p.endsWith(domain);
}
let promiseForTable: Promise<void> = Object.entries($sitesTable).length === 0 ? reloadTable() : Promise.resolve();
let promiseForTable: Promise<void> = reloadTable();
async function reloadTable(): Promise<void> {
let f = await apiRequest(apiSiteHosting);

View File

@ -39,7 +39,7 @@
return p.endsWith(domain);
}
let promiseForTable: Promise<void> = Object.keys($tableData).length === 0 ? reloadTable() : Promise.resolve();
let promiseForTable: Promise<void> = reloadTable();
async function reloadTable(): Promise<void> {
let f = await apiRequest(apiUrl);