mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 11:56:01 +01:00
more changes to import reporting through WS
This commit is contained in:
@@ -342,7 +342,7 @@ async function importTar(fileBuffer, importRootNote) {
|
||||
if (Date.now() - lastSentCountTs >= 1000) {
|
||||
lastSentCountTs = Date.now();
|
||||
|
||||
messagingService.sendMessageToAllClients({ type: 'importNoteCount', count: importNoteCount });
|
||||
messagingService.importNoteCount(importNoteCount);
|
||||
}
|
||||
|
||||
next(); // ready for next entry
|
||||
@@ -379,6 +379,8 @@ async function importTar(fileBuffer, importRootNote) {
|
||||
}
|
||||
}
|
||||
|
||||
messagingService.importFinished(firstNote);
|
||||
|
||||
resolve(firstNote);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user