fix: keep the user menu and the bell in the header slot

With two elements in the signed-in branch, neither was projected into the
shell's user slot.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-08 14:58:27 +02:00
parent 298383f19f
commit d2e31789a7

View File

@@ -46,8 +46,11 @@ import { NotificationsBell } from '@task-stream/web/tracker/presenters';
Explorar Explorar
</a> </a>
@if (auth.isAuthenticated()) { @if (auth.isAuthenticated()) {
<ts-notifications-bell shellUser /> <!-- One projectable node per @if branch, or neither reaches the slot. -->
<ts-user-menu shellUser /> <ng-container shellUser>
<ts-notifications-bell />
<ts-user-menu />
</ng-container>
} @else if (auth.settled() && !onLogin()) { } @else if (auth.settled() && !onLogin()) {
<a shellUser class="ts-nav-link ts-nav-link--cta" routerLink="/login" <a shellUser class="ts-nav-link ts-nav-link--cta" routerLink="/login"
>Iniciar sesión</a >Iniciar sesión</a