Pass api call

This commit is contained in:
Adria Navarro 2024-01-08 13:48:50 +01:00
parent f123a821bd
commit 2a07aa35f4
1 changed files with 7 additions and 1 deletions

View File

@ -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>