Changeset ad60966 for Farmatiko/ClientApp/src/app/login
- Timestamp:
- 11/05/20 08:53:48 (4 years ago)
- Branches:
- master
- Children:
- 1db5673
- Parents:
- afc9a9a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Farmatiko/ClientApp/src/app/login/login.component.ts
rafc9a9a rad60966 53 53 .pipe(finalize(() => (this.busy = false))) 54 54 .subscribe( 55 () => { 56 this.router.navigate(['/dashboard']); 55 (data) => { 56 if(data.role == 'Admin') { 57 this.router.navigate(['/admin']); 58 } 59 else { 60 this.router.navigate(['/dashboard']); 61 } 57 62 }, 58 63 () => {
Note:
See TracChangeset
for help on using the changeset viewer.