mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 19:36:12 +01:00
bulk actions WIP
This commit is contained in:
@@ -219,10 +219,28 @@ function getShareRoot() {
|
||||
return shareRoot;
|
||||
}
|
||||
|
||||
function getBulkActionNote() {
|
||||
let bulkActionNote = becca.getNote('bulkaction');
|
||||
|
||||
if (!bulkActionNote) {
|
||||
bulkActionNote = noteService.createNewNote({
|
||||
branchId: 'bulkaction',
|
||||
noteId: 'bulkaction',
|
||||
title: 'Bulk action',
|
||||
type: 'text',
|
||||
content: '',
|
||||
parentNoteId: getHiddenRoot().noteId
|
||||
}).note;
|
||||
}
|
||||
|
||||
return bulkActionNote;
|
||||
}
|
||||
|
||||
function createMissingSpecialNotes() {
|
||||
getSinglesNoteRoot();
|
||||
getSqlConsoleRoot();
|
||||
getGlobalNoteMap();
|
||||
getBulkActionNote();
|
||||
// share root is not automatically created since it's visible in the tree and many won't need it/use it
|
||||
|
||||
const hidden = getHiddenRoot();
|
||||
@@ -239,5 +257,6 @@ module.exports = {
|
||||
createSearchNote,
|
||||
saveSearchNote,
|
||||
createMissingSpecialNotes,
|
||||
getShareRoot
|
||||
getShareRoot,
|
||||
getBulkActionNote,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user