cleanup in tree service

This commit is contained in:
azivner
2018-03-25 22:37:02 -04:00
parent d3316cd09c
commit 91ee90d827
6 changed files with 27 additions and 57 deletions

View File

@@ -1,5 +1,6 @@
import treeService from '../services/tree.js';
import server from '../services/server.js';
import treeCache from "../services/tree_cache.js";
const $dialog = $("#edit-tree-prefix-dialog");
const $form = $("#edit-tree-prefix-form");
@@ -19,7 +20,7 @@ async function showDialog() {
const currentNode = treeService.getCurrentNode();
branchId = currentNode.data.branchId;
const branch = await treeService.getBranch(branchId);
const branch = await treeCache.getBranch(branchId);
$treePrefixInput.val(branch.prefix).focus();