Create updating page

This commit is contained in:
Adria Navarro 2023-12-12 18:38:29 +01:00
parent b7ec577efd
commit 9067d38dce
2 changed files with 21 additions and 3 deletions

View File

@ -46,8 +46,12 @@ export const API = createAPIClient({
}
},
onMigrationDetected: appId => {
window.location = `/builder/updating/${appId}?returnUrl=${encodeURI(
window.location
)}`
const updatingUrl = `/builder/updating/${appId}`
if (window.location.pathname === updatingUrl) {
return
}
window.location = `${updatingUrl}?returnUrl=${encodeURI(window.location)}`
},
})

View File

@ -0,0 +1,14 @@
<script>
import Spinner from "components/common/Spinner.svelte"
</script>
<div class="loading">
<Spinner size="20" />
</div>
<style>
.loading {
display: flex;
justify-content: center;
}
</style>