Set login dialog width to 400px in auth guard.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user