Create updating page
This commit is contained in:
parent
b7ec577efd
commit
9067d38dce
2 changed files with 21 additions and 3 deletions
|
@ -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)}`
|
||||
},
|
||||
})
|
||||
|
|
14
packages/builder/src/pages/builder/updating/[appId].svelte
Normal file
14
packages/builder/src/pages/builder/updating/[appId].svelte
Normal 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>
|
Loading…
Reference in a new issue