mirror of
https://github.com/zadam/trilium.git
synced 2025-11-17 10:40:41 +01:00
fixes to note attachment handling
This commit is contained in:
@@ -8,6 +8,7 @@ import hoistedNoteService from "../../services/hoisted_note.js";
|
||||
import BasicWidget from "../basic_widget.js";
|
||||
import dialogService from "../../services/dialog.js";
|
||||
import toastService from "../../services/toast.js";
|
||||
import ws from "../../services/ws.js";
|
||||
|
||||
const TPL = `
|
||||
<div class="recent-changes-dialog modal fade mx-auto" tabindex="-1" role="dialog">
|
||||
@@ -94,9 +95,9 @@ export default class RecentChangesDialog extends BasicWidget {
|
||||
|
||||
this.$widget.modal('hide');
|
||||
|
||||
await froca.reloadNotes([change.noteId]);
|
||||
|
||||
appContext.tabManager.getActiveContext().setNote(change.noteId);
|
||||
setTimeout(() => {
|
||||
appContext.tabManager.getActiveContext().setNote(change.noteId);
|
||||
}, 1000);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user