2023-12-19 12:05:27 +01:00
|
|
|
<script>
|
2024-01-08 12:07:26 +01:00
|
|
|
import { Updating } from "@budibase/frontend-core"
|
2024-01-08 13:48:50 +01:00
|
|
|
import { API } from "../api"
|
|
|
|
|
|
|
|
async function isMigrationDone() {
|
|
|
|
const response = await API.getMigrationStatus()
|
|
|
|
return response.migrated
|
|
|
|
}
|
2023-12-19 12:20:05 +01:00
|
|
|
|
2024-01-08 12:07:26 +01:00
|
|
|
async function onMigrationDone() {
|
|
|
|
window.location.reload()
|
2023-12-19 12:20:05 +01:00
|
|
|
}
|
2023-12-19 12:05:27 +01:00
|
|
|
</script>
|
|
|
|
|
2024-01-08 12:21:34 +01:00
|
|
|
<div class="updating">
|
2024-01-08 13:48:50 +01:00
|
|
|
<Updating {isMigrationDone} {onMigrationDone} />
|
2024-01-08 12:21:34 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
.updating {
|
|
|
|
font-family: var(--font-sans);
|
|
|
|
}
|
|
|
|
</style>
|