mirror of
https://github.com/zadam/trilium.git
synced 2025-10-31 18:36:30 +01:00
all access to notes and branches is now async so we can lazy load it in the future
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import treeService from '../services/tree.js';
|
||||
import server from '../services/server.js';
|
||||
|
||||
const $dialog = $("#edit-tree-prefix-dialog");
|
||||
const $form = $("#edit-tree-prefix-form");
|
||||
@@ -18,9 +19,9 @@ async function showDialog() {
|
||||
const currentNode = treeService.getCurrentNode();
|
||||
|
||||
branchId = currentNode.data.branchId;
|
||||
const nt = treeService.getBranch(branchId);
|
||||
const branch = await treeService.getBranch(branchId);
|
||||
|
||||
$treePrefixInput.val(nt.prefix).focus();
|
||||
$treePrefixInput.val(branch.prefix).focus();
|
||||
|
||||
const noteTitle = treeService.getNoteTitle(currentNode.data.noteId);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user