feat(frontend): wire notification component into dashboard header
- Import NotificationComponent in DashboardLayout - Add bell icon with unread badge to dashboard header
This commit is contained in:
parent
cadd5a697e
commit
a9329b309f
@ -50,6 +50,7 @@
|
||||
</h1>
|
||||
|
||||
<div class="flex items-center gap-4">
|
||||
<app-notification />
|
||||
<span class="text-sm text-gray-500 hidden sm:inline">
|
||||
Rolle: <span class="font-semibold text-gray-700">{{ authService.currentUserRole() }}</span>
|
||||
</span>
|
||||
|
||||
@ -2,11 +2,12 @@ import {Component, computed, inject, signal} from '@angular/core';
|
||||
import {Router, RouterLink, RouterLinkActive, RouterOutlet} from '@angular/router';
|
||||
import {AuthService} from '../../services/auth';
|
||||
import {NAV_ITEMS} from './dashboard-nav-items';
|
||||
import {NotificationComponent} from '../../components/notification/notification';
|
||||
|
||||
@Component({
|
||||
selector: 'app-dashboard-layout',
|
||||
standalone: true,
|
||||
imports: [RouterOutlet, RouterLink, RouterLinkActive],
|
||||
imports: [RouterOutlet, RouterLink, RouterLinkActive, NotificationComponent],
|
||||
templateUrl: './dashboard-layout.html',
|
||||
styleUrl: './dashboard-layout.scss'
|
||||
})
|
||||
|
||||
Loading…
Reference in New Issue
Block a user