admin dashboard

This commit is contained in:
Zimeng Xiong
2026-02-06 14:27:24 -08:00
parent 1e617025df
commit 0253ebb6b8
3 changed files with 87 additions and 46 deletions
+10 -1
View File
@@ -301,7 +301,16 @@ export const importLegacyFiles = async (
(parsed as any).elements &&
(parsed as any).appState
) {
const result = await importDrawings([file], targetCollectionId, undefined, onProgress);
const mappedOnProgress = onProgress
? (_idx: number, status: UploadStatus, progress: number, error?: string) =>
onProgress(fileIndex, status, progress, error)
: undefined;
const result = await importDrawings(
[file],
targetCollectionId,
undefined,
mappedOnProgress
);
successCount += result.success;
failCount += result.failed;
errors.push(...result.errors);