From 03a933005d7f3c4bb595b6ee6e4d2f95aca987d3 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Mon, 8 Jan 2024 13:42:38 +0100 Subject: [PATCH] Pass isMigrationDone --- .../src/pages/builder/app/updating/[application].svelte | 9 ++++++++- packages/frontend-core/src/components/Updating.svelte | 9 ++++----- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/packages/builder/src/pages/builder/app/updating/[application].svelte b/packages/builder/src/pages/builder/app/updating/[application].svelte index ec851fa08d..1f92861edf 100644 --- a/packages/builder/src/pages/builder/app/updating/[application].svelte +++ b/packages/builder/src/pages/builder/app/updating/[application].svelte @@ -2,6 +2,13 @@ import { Updating } from "@budibase/frontend-core" import { redirect, params } from "@roxi/routify" + import { API } from "api" + + async function isMigrationDone() { + const response = await API.getMigrationStatus() + return response.migrated + } + async function onMigrationDone() { // For some reason routify params is not stripping the ? properly, so we need to check both with and without ? const returnUrl = $params.returnUrl || $params["?returnUrl"] @@ -9,4 +16,4 @@ } - + diff --git a/packages/frontend-core/src/components/Updating.svelte b/packages/frontend-core/src/components/Updating.svelte index 16e4b51de4..7d4a101fee 100644 --- a/packages/frontend-core/src/components/Updating.svelte +++ b/packages/frontend-core/src/components/Updating.svelte @@ -1,18 +1,17 @@