diff options
Diffstat (limited to 'apps/web/src/core/managers')
| -rw-r--r-- | apps/web/src/core/managers/project-manager.ts | 9 |
1 files changed, 8 insertions, 1 deletions
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; |
