mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
import doesn't need a full tree reload
This commit is contained in:
parent
f00e1235f9
commit
c6806256fd
@ -115,11 +115,6 @@ $("body").on("click", "a.external", function () {
|
|||||||
|
|
||||||
if (utils.isElectron()) {
|
if (utils.isElectron()) {
|
||||||
require('electron').ipcRenderer.on('create-day-sub-note', async function(event, parentNoteId) {
|
require('electron').ipcRenderer.on('create-day-sub-note', async function(event, parentNoteId) {
|
||||||
// this might occur when day note had to be created
|
|
||||||
if (!await treeCache.getNote(parentNoteId)) {
|
|
||||||
await treeService.reload();
|
|
||||||
}
|
|
||||||
|
|
||||||
await treeService.activateNote(parentNoteId);
|
await treeService.activateNote(parentNoteId);
|
||||||
|
|
||||||
setTimeout(async () => {
|
setTimeout(async () => {
|
||||||
|
@ -98,7 +98,7 @@ async function uploadFiles(importNoteId, files, options) {
|
|||||||
|
|
||||||
infoService.showMessage("Import finished successfully.");
|
infoService.showMessage("Import finished successfully.");
|
||||||
|
|
||||||
await treeService.reload();
|
await treeService.reloadNote(importNoteId);
|
||||||
|
|
||||||
if (noteId) {
|
if (noteId) {
|
||||||
const node = await treeService.activateNote(noteId);
|
const node = await treeService.activateNote(noteId);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user