Resolve broken Pocket ID auth and occasional Authentik failures
This commit is contained in:
committed by
Aditya Chandel
parent
98bd69164b
commit
f7db157689
@@ -7,6 +7,7 @@ import {parseLogNotification} from './shared/websocket/model/log-notification.mo
|
||||
import {ConfirmDialog} from 'primeng/confirmdialog';
|
||||
import {Toast} from 'primeng/toast';
|
||||
import {RouterOutlet} from '@angular/router';
|
||||
import {AuthInitializationService} from './auth-initialization-service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-root',
|
||||
@@ -17,12 +18,18 @@ import {RouterOutlet} from '@angular/router';
|
||||
})
|
||||
export class AppComponent implements OnInit {
|
||||
|
||||
loading = true;
|
||||
private authInit = inject(AuthInitializationService);
|
||||
private bookService = inject(BookService);
|
||||
private rxStompService = inject(RxStompService);
|
||||
private eventService = inject(EventService);
|
||||
|
||||
ngOnInit(): void {
|
||||
|
||||
this.authInit.initialized$.subscribe(ready => {
|
||||
this.loading = !ready;
|
||||
});
|
||||
|
||||
this.rxStompService.watch('/topic/book-add').subscribe((message: Message) => {
|
||||
this.bookService.handleNewlyCreatedBook(JSON.parse(message.body));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user