Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/Evolveum/midpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
KaterynaHonchar committed Mar 24, 2020
2 parents 19a60fc + 5ce638d commit 061e267
Showing 1 changed file with 7 additions and 1 deletion.
Expand Up @@ -2038,7 +2038,13 @@ private MainMenuItem createHomeItems() {
}
PageParameters pageParameters = new PageParameters();
pageParameters.add(OnePageParameterEncoder.PARAMETER, dashboard.getOid());
MenuItem menu = new MenuItem(label, "", PageDashboardConfigurable.class, pageParameters, null, null);
MenuItem menu = new MenuItem(label, "", PageDashboardConfigurable.class, pageParameters, null, null){
@Override
protected boolean isMenuActive() {
StringValue dashboardOid = getPageParameters().get(OnePageParameterEncoder.PARAMETER);
return dashboard.getOid().equals(dashboardOid.toString());
}
};
item.getItems().add(menu);
});

Expand Down

0 comments on commit 061e267

Please sign in to comment.