1
0
Fork 0
mirror of synced 2024-07-29 10:05:55 +12:00

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>