mirror of
https://github.com/zadam/trilium.git
synced 2025-10-30 09:56:36 +01:00
clipboard is now owned by note tree
This commit is contained in:
@@ -4,14 +4,22 @@ const noteTree = (function() {
|
||||
const noteDetailEl = $('#note-detail');
|
||||
const treeEl = $("#tree");
|
||||
let treeLoadTime = null;
|
||||
let clipboardNoteId = null;
|
||||
|
||||
glob.allNoteIds = [];
|
||||
glob.clipboardNoteId = null;
|
||||
|
||||
function getTreeLoadTime() {
|
||||
return treeLoadTime;
|
||||
}
|
||||
|
||||
function getClipboardNoteId() {
|
||||
return clipboardNoteId;
|
||||
}
|
||||
|
||||
function setClipboardNoteId(cbNoteId) {
|
||||
clipboardNoteId = cbNoteId;
|
||||
}
|
||||
|
||||
function prepareNoteTree(notes) {
|
||||
for (const note of notes) {
|
||||
glob.allNoteIds.push(note.note_id);
|
||||
@@ -284,9 +292,11 @@ const noteTree = (function() {
|
||||
|
||||
return {
|
||||
getTreeLoadTime,
|
||||
getClipboardNoteId,
|
||||
setClipboardNoteId,
|
||||
loadTree,
|
||||
collapseTree,
|
||||
scrollToCurrentNote,
|
||||
toggleSearch
|
||||
toggleSearch,
|
||||
};
|
||||
})();
|
||||
Reference in New Issue
Block a user