@social-mail/social-mail-client 1.9.94 → 1.9.95
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/admin/AdminAppIndex.pack.js +23 -21
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/services/files/LocalFileService.js +23 -21
- package/dist/services/files/LocalFileService.js.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.js +23 -21
- package/dist/site-editor-app/SiteEditorApp.pack.js.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.min.js +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.min.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +23 -21
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +1 -1
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/package.json +1 -1
- package/src/services/files/LocalFileService.tsx +19 -17
package/package.json
CHANGED
|
@@ -337,28 +337,30 @@ class FileUploadWindow extends PopupWindow {
|
|
|
337
337
|
</div>}
|
|
338
338
|
/>
|
|
339
339
|
</div>);
|
|
340
|
-
|
|
340
|
+
this.app.runAsync(async () => {
|
|
341
|
+
try {
|
|
341
342
|
|
|
342
|
-
|
|
343
|
+
const ct = new CancelToken();
|
|
343
344
|
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
345
|
+
this.registerDisposable({
|
|
346
|
+
dispose: () => {
|
|
347
|
+
ct.cancel();
|
|
348
|
+
}
|
|
349
|
+
});
|
|
350
|
+
|
|
351
|
+
const tasks = this.files.map((x) => x.promise);
|
|
352
|
+
const files = await Promise.all(tasks);
|
|
353
|
+
const extra = this.parameters.extra;
|
|
354
|
+
this.close({ files, extra });
|
|
355
|
+
} catch (error) {
|
|
356
|
+
if (CancelToken.isCancelled(error)) {
|
|
357
|
+
this.cancel(error);
|
|
358
|
+
return;
|
|
347
359
|
}
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
const tasks = this.files.map((x) => x.promise);
|
|
351
|
-
const files = await Promise.all(tasks);
|
|
352
|
-
const extra = this.parameters.extra;
|
|
353
|
-
this.close({ files, extra });
|
|
354
|
-
} catch (error) {
|
|
355
|
-
if (CancelToken.isCancelled(error)) {
|
|
360
|
+
await PopupService.alert({ message: error });
|
|
356
361
|
this.cancel(error);
|
|
357
|
-
return;
|
|
358
362
|
}
|
|
359
|
-
|
|
360
|
-
this.cancel(error);
|
|
361
|
-
}
|
|
363
|
+
});
|
|
362
364
|
}
|
|
363
365
|
|
|
364
366
|
}
|