v0.13.2
This commit is contained in:
Vendored
+5
-1
@@ -1,5 +1,5 @@
|
||||
async function loadBootstrap(showMessage = false) {
|
||||
if (app.loading) return;
|
||||
if (app.loading) { app.bootstrapReloadPending = true; return; }
|
||||
app.loading = true;
|
||||
try {
|
||||
const [data, sections] = await Promise.all([api('/api/bootstrap'), fetchSettingsSections()]);
|
||||
@@ -28,6 +28,10 @@ async function loadBootstrap(showMessage = false) {
|
||||
if (!String(error.message).toLowerCase().includes('token')) toast(error.message, true);
|
||||
} finally {
|
||||
app.loading = false;
|
||||
if (app.bootstrapReloadPending) {
|
||||
app.bootstrapReloadPending = false;
|
||||
setTimeout(() => loadBootstrap(), 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user