Merge branch 'main' into feature/authentik
All checks were successful
All checks were successful
This commit is contained in:
commit
25c68e230d
12 changed files with 153 additions and 93 deletions
|
@ -19,9 +19,9 @@
|
|||
class="text-white font-bold bg-deep-blue-contrast rounded-full px-4 py-2 text-sm hover:bg-deep-blue-contrast/80 hover:cursor-pointer hover:scale-105 transition-all active:scale-95 select-none duration-300"
|
||||
routerLink="/home"
|
||||
>
|
||||
<span [class]="balance() < 0 ? 'text-accent-red' : ''">{{
|
||||
balance() | currency: 'EUR' : 'symbol' : '1.2-2'
|
||||
}}</span>
|
||||
<span [class]="balance() < 0 ? 'text-accent-red' : ''">
|
||||
<app-animated-number [value]="balance()" [duration]="0.5"></app-animated-number>
|
||||
</span>
|
||||
</div>
|
||||
<button (click)="logout()" class="button-primary px-4 py-1.5">Abmelden</button>
|
||||
}
|
||||
|
|
|
@ -11,12 +11,13 @@ import { AuthService } from '../../../service/auth.service';
|
|||
import { CurrencyPipe } from '@angular/common';
|
||||
import { UserService } from '@service/user.service';
|
||||
import { Subscription } from 'rxjs';
|
||||
import { AnimatedNumberComponent } from '@blackjack/components/animated-number/animated-number.component';
|
||||
|
||||
@Component({
|
||||
selector: 'app-navbar',
|
||||
templateUrl: './navbar.component.html',
|
||||
standalone: true,
|
||||
imports: [RouterModule, CurrencyPipe],
|
||||
imports: [RouterModule, CurrencyPipe, AnimatedNumberComponent],
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
})
|
||||
export class NavbarComponent implements OnInit, OnDestroy {
|
||||
|
|
Reference in a new issue