Skip to content

Commit

Permalink
Minor changes and refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
sprevilla committed Feb 22, 2019
1 parent 80edd2c commit b6846e3
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions modules/qi-core/src/main/java/org/jpos/qi/QINavigator.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,7 @@ private void initNavigator() {
}
perms.put(route, perm);
e.getChildren("property").stream().filter(p -> "entityName".equals(p.getAttributeValue("name"))).forEach(
p -> {
if (routes.get(p.getAttributeValue("value")) == null ) {
routes.put(p.getAttributeValue("value"), route);
}
});
p -> routes.putIfAbsent(p.getAttributeValue("value"), route));
} catch (ClassNotFoundException ex) {
app.getLog().error(ex);
}
Expand Down Expand Up @@ -105,7 +101,7 @@ public void navigateTo(String navigationState) {
}
super.navigateTo(navigationState);
if (app.sidebar() != null) {
app.sidebar().markAsSelected(navigationState.substring(1).split("/|,|\\?")[0]);
app.sidebar().markAsSelected(navigationState.substring(1).split("[/,?]")[0]);
}
} catch( IllegalArgumentException e) {
QI.getQI().displayNotification(e.getMessage());
Expand Down

0 comments on commit b6846e3

Please # to comment.