Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

fix: Stop rendering empty menu on signin page. #175

Merged
merged 1 commit into from
Aug 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions module/Olcs/view/layouts/base.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -193,12 +193,12 @@ $isLoggedIn = $currentUser->isLoggedIn();
: $this->translate('header-vehicle-operator-licensing');
?>
</a>
<?php if ($isLoggedIn): ?>
<nav aria-label="Menu" class="govuk-header__navigation">
<button type="button" class="govuk-header__menu-button govuk-js-header-toggle" aria-controls="navigation" aria-label="<?php echo $this->escapeHtml($this->translate('show.or.hide.top.level.navigation')); ?>">
<?php echo $this->escapeHtml($this->translate('menu')); ?>
</button>
<?php
if ($isLoggedIn) {
// get Home navigation
$navigation = $this->navigation('navigation')->getContainer()->findBy('id', 'home');

Expand All @@ -219,9 +219,9 @@ $isLoggedIn = $currentUser->isLoggedIn();

// This seems irrelevant, but it's very important as the partial is set elsewhere
$menu->setPartial(null);
}
?>
</nav>
<?php endif; ?>
</div>
</div>
</header>
Expand Down
Loading