diff --git a/packages/client/src/components/UpdatingApp.svelte b/packages/client/src/components/UpdatingApp.svelte index 2843133f2d..7d8d54df45 100644 --- a/packages/client/src/components/UpdatingApp.svelte +++ b/packages/client/src/components/UpdatingApp.svelte @@ -4,6 +4,8 @@ const timeoutMs = 60000 // 1 minute const loadTime = Date.now() + let timedOut = false + async function checkMigrationsFinished() { setTimeout(async () => { const response = await API.getMigrationStatus() @@ -11,7 +13,6 @@ if (loadTime + timeoutMs > Date.now()) { return checkMigrationsFinished() } - return migrationTimeout() } @@ -22,16 +23,39 @@ checkMigrationsFinished() function migrationTimeout() { - // TODO - alert("Something went wrong 💀") + timedOut = true } -
Updating the system...
+
+ {#if !timedOut} +

+ 🛠️ We are updating the system.
Please wait, we will be back in a + second! +

+ {:else} +

+ An error occurred. Please try again later. +

+ {/if} +