mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
import error handling
This commit is contained in:
@@ -63,6 +63,12 @@ function importIntoNote(importNoteId) {
|
||||
}
|
||||
|
||||
messagingService.subscribeToMessages(async message => {
|
||||
if (message.type === 'import-error') {
|
||||
infoService.showError(message.message);
|
||||
$dialog.modal('hide');
|
||||
return;
|
||||
}
|
||||
|
||||
if (!message.importId || message.importId !== importId) {
|
||||
// incoming messages must correspond to this import instance
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user