31.7. Default Page after login is Users (#31)

This commit is contained in:
Art
2021-10-08 16:36:38 +03:00
parent ee76974e73
commit 494aa8c53b

View File

@ -26,7 +26,7 @@ export class LoginComponent implements OnInit, OnDestroy {
ngOnInit(): void {
if (this.authenticationService.isUserLoggedIn()) {
this.router.navigateByUrl("/user/management");
this.router.navigate(["/management", "users"]);
this.notificationService.notify(NotificationType.INFO, "You are already logged in");
}
}
@ -43,7 +43,7 @@ export class LoginComponent implements OnInit, OnDestroy {
this.authenticationService.addUserToLocalStorage(response.body!);
this.router.navigateByUrl('/user/management');
this.router.navigateByUrl('/management/users');
this.showLoading = false;
},
(errorResponse: HttpErrorResponse) => {