feat: Convert login button to hompage button when user is authenticated

This commit is contained in:
Phan Huy Tran 2025-02-12 12:19:31 +01:00
parent 9289a72acf
commit 3a2b92b3ff
2 changed files with 15 additions and 3 deletions

View file

@ -1 +1,5 @@
<button (click)="login()">Einloggen</button>
@if (isLoggedIn) {
<button routerLink="/home">Zur Homepage</button>
} @else {
<button (click)="login()">Einloggen</button>
}