Changeset 1f4846d for Farmatiko/ClientApp/src/app/dashboard
- Timestamp:
- 11/01/20 00:55:08 (4 years ago)
- Branches:
- master
- Children:
- d23bf72
- Parents:
- 993189e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Farmatiko/ClientApp/src/app/dashboard/dashboard.component.ts
r993189e r1f4846d 3 3 import { MatSnackBar, MatSnackBarRef, SimpleSnackBar } from '@angular/material/snack-bar'; 4 4 import { IPharmacy, IMedicine, IPharmacyHead, IPharmacyHeadRequest } from '../shared/interfaces'; 5 import { DataService } from '../shared/ data.service';5 import { DataService } from '../shared/services/data.service'; 6 6 import { PharmacyDialogComponent } from '../dialogs/pharmacy-dialog/pharmacy-dialog.component'; 7 7 import { EditPharmacyDialogComponent } from '../dialogs/edit-pharmacy-dialog/edit-pharmacy-dialog.component'; 8 8 import { MedicineDialogComponent } from '../dialogs/medicine-dialog/medicine-dialog.component'; 9 9 import { ActivatedRoute, Router } from '@angular/router'; 10 import { AuthService } from '../shared/ auth.service';10 import { AuthService } from '../shared/services/auth.service'; 11 11 12 12 @Component({ … … 27 27 28 28 ngOnInit(): void { 29 this.head = this.authService.headValue; 29 this.authService.getUser().subscribe((data : IPharmacyHead) => { 30 this.head = data; 31 }); 30 32 this.dataService.getPharmacies() 31 33 .subscribe((pharmacy: IPharmacy[]) => {
Note:
See TracChangeset
for help on using the changeset viewer.