Skip to content

Commit

Permalink
feat(registrar): allow disabling top menu
Browse files Browse the repository at this point in the history
- allow to use `header.disabled` property also for the registrar pages
  • Loading branch information
Peter Balčirák authored and kofzera committed Oct 31, 2024
1 parent fdde281 commit 9950a03
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ interface PerunRegistrarViewUiBinder extends UiBinder<Widget, PerunRegistrarView
@UiField
NavbarNav topMenu;

@UiField
Div menuWrapper;

@UiField
NavbarCollapse collapse;

Expand Down Expand Up @@ -158,6 +161,10 @@ public void hideNavbar() {
//logo.setPull(Pull.LEFT);
logoWrapper.add(logo);

if (PerunConfiguration.isHeaderDisabled()) {
menuWrapper.setVisible(false);
}

if (!PerunConfiguration.isLangSwitchingDisabled()) {
UiUtils.addLanguageSwitcher(topMenu);
}
Expand Down

0 comments on commit 9950a03

Please sign in to comment.