mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 00:43:49 +01:00
[client] isUpdateAvailable should not block UI rendering
This commit is contained in:
parent
cd8809e927
commit
4794702e6f
@ -126,7 +126,9 @@ os.api("admin/abuse-user-reports", {
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (defaultStore.state.showAdminUpdates) {
|
if (defaultStore.state.showAdminUpdates) {
|
||||||
updateAvailable = await isUpdateAvailable();
|
isUpdateAvailable().then(res => {
|
||||||
|
updateAvailable = res;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
const NARROW_THRESHOLD = 600;
|
const NARROW_THRESHOLD = 600;
|
||||||
|
@ -197,7 +197,9 @@ if ($i?.isAdmin) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (defaultStore.state.showAdminUpdates) {
|
if (defaultStore.state.showAdminUpdates) {
|
||||||
updateAvailable = await isUpdateAvailable();
|
isUpdateAvailable().then(res => {
|
||||||
|
updateAvailable = res;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user