mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
fix refreshing notes after import / delete
(cherry picked from commit 5b5ab0b044a243b452ee06a78bf33db13281d9d7)
This commit is contained in:
parent
f7c59700a5
commit
fcb6a06d68
@ -221,7 +221,7 @@ class Attributes {
|
|||||||
.prop("title", "Remove this attribute")
|
.prop("title", "Remove this attribute")
|
||||||
.click(async () => {
|
.click(async () => {
|
||||||
if (valueAttr.attributeId) {
|
if (valueAttr.attributeId) {
|
||||||
await server.remove("notes/" + noteId + "/attributes/" + valueAttr.attributeId);
|
await server.remove("notes/" + this.ctx.note.noteId + "/attributes/" + valueAttr.attributeId);
|
||||||
}
|
}
|
||||||
|
|
||||||
$tr.remove();
|
$tr.remove();
|
||||||
|
@ -148,7 +148,7 @@ async function deleteNodes(nodes) {
|
|||||||
|
|
||||||
const nextNotePath = await getNextNode(nodes);
|
const nextNotePath = await getNextNode(nodes);
|
||||||
|
|
||||||
const noteIds = Array.from(new Set(nodes.map(node => node.data.noteId)));
|
const noteIds = Array.from(new Set(nodes.map(node => node.getParent().data.noteId)));
|
||||||
|
|
||||||
await treeService.reloadNotes(noteIds, nextNotePath);
|
await treeService.reloadNotes(noteIds, nextNotePath);
|
||||||
|
|
||||||
|
@ -63,7 +63,7 @@ ws.subscribeToMessages(async message => {
|
|||||||
|
|
||||||
toastService.showPersistent(toast);
|
toastService.showPersistent(toast);
|
||||||
|
|
||||||
await treeService.reloadNotes([message.parentNoteId]);
|
await treeService.reloadNotes([message.result.parentNoteId]);
|
||||||
|
|
||||||
if (message.result.importedNoteId) {
|
if (message.result.importedNoteId) {
|
||||||
const node = await treeService.activateNote(message.result.importedNoteId);
|
const node = await treeService.activateNote(message.result.importedNoteId);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user