Pass api call
This commit is contained in:
parent
f123a821bd
commit
2a07aa35f4
|
@ -1,5 +1,11 @@
|
||||||
<script>
|
<script>
|
||||||
import { Updating } from "@budibase/frontend-core"
|
import { Updating } from "@budibase/frontend-core"
|
||||||
|
import { API } from "../api"
|
||||||
|
|
||||||
|
async function isMigrationDone() {
|
||||||
|
const response = await API.getMigrationStatus()
|
||||||
|
return response.migrated
|
||||||
|
}
|
||||||
|
|
||||||
async function onMigrationDone() {
|
async function onMigrationDone() {
|
||||||
window.location.reload()
|
window.location.reload()
|
||||||
|
@ -7,7 +13,7 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="updating">
|
<div class="updating">
|
||||||
<Updating {onMigrationDone} />
|
<Updating {isMigrationDone} {onMigrationDone} />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|
Loading…
Reference in New Issue