moving edit branch prefix, search in subtree and toggle note hoisting to global entrypoints instead of being tree specific

This commit is contained in:
zadam
2019-11-23 23:06:25 +01:00
parent 0cde7ede24
commit 01ff34b5d4
3 changed files with 45 additions and 30 deletions

View File

@@ -17,11 +17,21 @@ export async function showDialog(node) {
glob.activeDialog = $dialog;
$dialog.modal();
branchId = node.data.branchId;
const branch = treeCache.getBranch(branchId);
if (branch.noteId === 'root') {
return;
}
const parentNote = await treeCache.getNote(branch.parentNoteId);
if (parentNote.type === 'search') {
return;
}
$dialog.modal();
$treePrefixInput.val(branch.prefix);
const noteTitle = await treeUtils.getNoteTitle(node.data.noteId);