Set login dialog width to 400px in auth guard.

This commit is contained in:
akastijn 2025-10-12 21:42:58 +02:00
parent b3999b3389
commit 0005b3b6d4

View File

@ -23,7 +23,9 @@ export class AuthGuard implements CanActivate {
): Observable<boolean | UrlTree> | Promise<boolean | UrlTree> | boolean | UrlTree {
if (!this.authService.checkAuthStatus()) {
this.router.createUrlTree(['/']);
const dialogRef = this.dialog.open(LoginDialogComponent);
const dialogRef = this.dialog.open(LoginDialogComponent, {
width: '400px',
})
return dialogRef.afterClosed().pipe(
map(result => {
if (result) {