Set login dialog width to 400px in auth guard.
This commit is contained in:
parent
b3999b3389
commit
0005b3b6d4
|
|
@ -23,7 +23,9 @@ export class AuthGuard implements CanActivate {
|
||||||
): Observable<boolean | UrlTree> | Promise<boolean | UrlTree> | boolean | UrlTree {
|
): Observable<boolean | UrlTree> | Promise<boolean | UrlTree> | boolean | UrlTree {
|
||||||
if (!this.authService.checkAuthStatus()) {
|
if (!this.authService.checkAuthStatus()) {
|
||||||
this.router.createUrlTree(['/']);
|
this.router.createUrlTree(['/']);
|
||||||
const dialogRef = this.dialog.open(LoginDialogComponent);
|
const dialogRef = this.dialog.open(LoginDialogComponent, {
|
||||||
|
width: '400px',
|
||||||
|
})
|
||||||
return dialogRef.afterClosed().pipe(
|
return dialogRef.afterClosed().pipe(
|
||||||
map(result => {
|
map(result => {
|
||||||
if (result) {
|
if (result) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user