Automatically hide the context menu after reloading a node

This commit is contained in:
Kenn Jacobsen
2019-05-26 19:05:19 +02:00
parent b270db791b
commit beb9068805

View File

@@ -71,7 +71,9 @@ function umbracoMenuActions(treeService, $location, navigationService, appState,
if (treeRoot && treeRoot.root) {
var treeNode = treeService.getDescendantNode(treeRoot.root, args.entity.id, args.treeAlias);
if (treeNode) {
treeService.loadNodeChildren({ node: treeNode, section: args.section });
treeService.loadNodeChildren({ node: treeNode, section: args.section }).then(function () {
navigationService.hideMenu();
});
}
}