Create updating page
This commit is contained in:
parent
b7ec577efd
commit
9067d38dce
|
@ -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)}`
|
||||
},
|
||||
})
|
||||
|
|
|
@ -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 New Issue