mirror of
https://github.com/zadam/trilium.git
synced 2025-10-30 18:05:55 +01:00
hidden subtree is not archived anymore
This commit is contained in:
@@ -605,11 +605,12 @@ export default class NoteTreeWidget extends NoteContextAwareWidget {
|
||||
|
||||
this.$tree.on('contextmenu', '.fancytree-node', e => {
|
||||
const node = $.ui.fancytree.getNode(e);
|
||||
const note = froca.getNoteFromCache(node.data.noteId);
|
||||
|
||||
if (hoistedNoteService.getHoistedNoteId() === 'lbRoot') {
|
||||
import("../menus/launcher_context_menu.js").then(({LauncherContextMenu: ShortcutContextMenu}) => {
|
||||
const shortcutContextMenu = new LauncherContextMenu(this, node);
|
||||
shortcutContextMenu.show(e);
|
||||
if (note.isLaunchBarConfig()) {
|
||||
import("../menus/launcher_context_menu.js").then(({default: LauncherContextMenu}) => {
|
||||
const launcherContextMenu = new LauncherContextMenu(this, node);
|
||||
launcherContextMenu.show(e);
|
||||
});
|
||||
} else {
|
||||
import("../menus/tree_context_menu.js").then(({default: TreeContextMenu}) => {
|
||||
|
||||
Reference in New Issue
Block a user