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