Sets the appState current node when executing a menu action (#6874)

This commit is contained in:
Matt Brailsford
2019-10-30 15:53:24 +01:00
committed by emma burstow
parent e113b56ce1
commit eebc06c1a3

View File

@@ -465,6 +465,8 @@ function navigationService($routeParams, $location, $q, $injector, eventsService
throw "section cannot be null";
}
appState.setMenuState("currentNode", node);
if (action.metaData && action.metaData["actionRoute"] && angular.isString(action.metaData["actionRoute"])) {
//first check if the menu item simply navigates to a route
var parts = action.metaData["actionRoute"].split("?");