mirror of
https://github.com/1f349/admin.1f349.com.git
synced 2024-11-09 22:32:57 +00:00
Auto reload tables on tab change
This commit is contained in:
parent
47bf91e7ff
commit
69f7b1a7c3
@ -29,7 +29,7 @@
|
|||||||
return p.endsWith(domain);
|
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> {
|
async function reloadTable(): Promise<void> {
|
||||||
let f = await apiRequest(apiOrchid + "/owned");
|
let f = await apiRequest(apiOrchid + "/owned");
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
return p.endsWith(domain);
|
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> {
|
async function reloadTable(): Promise<void> {
|
||||||
let f = await apiRequest(apiSiteHosting);
|
let f = await apiRequest(apiSiteHosting);
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
return p.endsWith(domain);
|
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> {
|
async function reloadTable(): Promise<void> {
|
||||||
let f = await apiRequest(apiUrl);
|
let f = await apiRequest(apiUrl);
|
||||||
|
Loading…
Reference in New Issue
Block a user