From d0b4b1a5fc439d68371d8cfa677348250afec88b Mon Sep 17 00:00:00 2001 From: Maze Winther Date: Thu, 5 Feb 2026 14:28:16 +0100 Subject: fix migration dialog --- apps/web/src/core/managers/project-manager.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'apps/web/src/core/managers') diff --git a/apps/web/src/core/managers/project-manager.ts b/apps/web/src/core/managers/project-manager.ts index 94576879..c7497ef0 100644 --- a/apps/web/src/core/managers/project-manager.ts +++ b/apps/web/src/core/managers/project-manager.ts @@ -24,6 +24,7 @@ import { CURRENT_PROJECT_VERSION, migrations, runStorageMigrations, + type MigrationProgress, } from "@/services/storage/migrations"; import { DEFAULT_TIMELINE_VIEW_STATE } from "@/constants/timeline-constants"; @@ -58,7 +59,13 @@ export class ProjectManager { } this.storageMigrationPromise = (async () => { - await runStorageMigrations({ migrations }); + await runStorageMigrations({ + migrations, + onProgress: (progress: MigrationProgress) => { + this.migrationState = progress; + this.notify(); + }, + }); })(); await this.storageMigrationPromise; -- cgit v1.3.1