Skip to content

Commit

Permalink
adding comparison of oids for active dashboard menu (MID-5982)
Browse files Browse the repository at this point in the history
  • Loading branch information
skublik committed Mar 24, 2020
1 parent 1d9bd89 commit 5ce638d
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 5ce638d

Please sign in to comment.