diff --git a/frontend/src/views/migrate/MigrationHandler.vue b/frontend/src/views/migrate/MigrationHandler.vue index 8a13955b8..fe57ffa7a 100644 --- a/frontend/src/views/migrate/MigrationHandler.vue +++ b/frontend/src/views/migrate/MigrationHandler.vue @@ -53,7 +53,7 @@

{{ $t('migrate.inProgress') }}

-
+
{{ $t('migrate.migrationInProgress') }} @@ -145,6 +145,7 @@ const lastMigrationFinishedAt = ref(null) const lastMigrationStartedAt = ref(null) const message = ref('') const migratorAuthCode = ref('') +const migrationJustStarted = ref(false) const migrator = computed(() => MIGRATORS[props.service]) @@ -207,12 +208,15 @@ async function migrate() { } try { - const result = migrator.value.isFileMigrator - ? await migrationFileService.migrate(migrationConfig as File) - : await migrationService.migrate(migrationConfig as MigrationConfig) - message.value = result.message - const projectStore = useProjectStore() - return projectStore.loadProjects() + if (migrator.value.isFileMigrator) { + const result = await migrationFileService.migrate(migrationConfig as File) + message.value = result.message + const projectStore = useProjectStore() + return projectStore.loadProjects() + } + + await migrationService.migrate(migrationConfig as MigrationConfig) + migrationJustStarted.value = true } catch (e) { console.log(e) } finally {