Changeset e0cdea2 for Farmatiko/ClientApp/src/app
- Timestamp:
- 02/08/21 16:39:25 (4 years ago)
- Branches:
- master
- Children:
- 8eb1e21, dae4cde
- Parents:
- 0a694bb
- Location:
- Farmatiko/ClientApp/src/app
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
Farmatiko/ClientApp/src/app/admin/admin.component.ts
r0a694bb re0cdea2 124 124 125 125 rejectRequest(req: IPharmacyHeadRequest) { 126 this.dataService.deleteClaimingRequest(req .id)126 this.dataService.deleteClaimingRequest(req) 127 127 .subscribe((status: boolean) => { 128 128 if(status) { … … 139 139 approveRequest(req: IPharmacyHeadRequest) { 140 140 if(req) { 141 if (req.PharmacyHead.Pharmacy == null){ 142 req.PharmacyHead.Pharmacy = []; 143 } 141 144 req.PharmacyHead.Pharmacy.push(req.Pharmacy); 142 145 this.dataService.updatePharmacyHead(req.PharmacyHead) -
Farmatiko/ClientApp/src/app/dashboard/dashboard.component.ts
r0a694bb re0cdea2 98 98 saveDeletedMedicines() { 99 99 this.dataService.updatePharmacyHead(this.head) 100 .subscribe((hd : IPharmacyHead) => {100 .subscribe((hd) => { 101 101 if(hd) { 102 102 this.openSnackBar("Success! Medicine deleted", "OK"); -
Farmatiko/ClientApp/src/app/shared/data.service.ts
r0a694bb re0cdea2 196 196 ); 197 197 } 198 deleteClaimingRequest( id: string) : Observable<boolean> {199 return this.http.post<boolean>(this.basePharmacyHead + '/requests/' + id, id)198 deleteClaimingRequest(req: IPharmacyHeadRequest) : Observable<boolean> { 199 return this.http.post<boolean>(this.basePharmacyHead + '/requests/' + req.id, req) 200 200 .pipe( 201 201 map((data) => {
Note:
See TracChangeset
for help on using the changeset viewer.