fix: delayed displaying of messages, transactions using signals

This commit is contained in:
eneller
2026-07-23 15:17:29 +02:00
parent 0f4474d29b
commit c282e275ef
6 changed files with 23 additions and 20 deletions

View File

@@ -1,4 +1,4 @@
import { Component, OnInit, signal } from '@angular/core';
import { Component, inject, OnInit, signal } from '@angular/core';
import { RouterOutlet, RouterLinkWithHref, Router, NavigationEnd } from '@angular/router';
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
import {
@@ -8,6 +8,7 @@ import {
NgbNavLinkBase,
} from '@ng-bootstrap/ng-bootstrap/nav';
import { filter } from 'rxjs';
import { APIService } from './services/api';
@Component({
selector: 'app-root',
@@ -17,6 +18,7 @@ import { filter } from 'rxjs';
})
export class App implements OnInit{
protected readonly title = signal('client');
protected api = inject(APIService);
active = '/';
constructor(
@@ -24,6 +26,7 @@ export class App implements OnInit{
){}
ngOnInit(): void {
this.api.checkAuthStatus().subscribe();
this.router.events
.pipe(filter(event => event instanceof NavigationEnd))
.subscribe(() =>{