Subscribe au bon endroit pour un refresh
correct de la liste des infos.
This commit is contained in:
@@ -25,9 +25,8 @@ export class AircraftService extends BaseService {
|
||||
imageData: dataImg
|
||||
};
|
||||
|
||||
this.http.post(`${this.apiUrl}/Aircraft`,
|
||||
bodyNewAircraft,
|
||||
{ headers: this.headers })
|
||||
.subscribe(data => console.log(data));
|
||||
return this.http.post(`${this.apiUrl}/Aircraft`,
|
||||
bodyNewAircraft,
|
||||
{ headers: this.headers });
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ export class DropzoneService extends BaseService {
|
||||
this.http.put(`${this.apiUrl}/DropZone/AddToFavorite/${selectedDz.id}`,
|
||||
selectedDz,
|
||||
{ headers: this.headers })
|
||||
.subscribe(data => console.log(data));
|
||||
.subscribe();
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -39,7 +39,7 @@ export class DropzoneService extends BaseService {
|
||||
this.http.put(`${this.apiUrl}/DropZone/RemoveToFavorite${selectedDz.id}`,
|
||||
selectedDz,
|
||||
{ headers: this.headers })
|
||||
.subscribe(data => console.log(data));
|
||||
.subscribe();
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -64,9 +64,8 @@ export class DropzoneService extends BaseService {
|
||||
isFavorite: isFavorite
|
||||
};
|
||||
|
||||
this.http.post(`${this.apiUrl}/DropZone`,
|
||||
bodyNewDropZone,
|
||||
{ headers: this.headers })
|
||||
.subscribe(data => console.log(data));
|
||||
return this.http.post(`${this.apiUrl}/DropZone`,
|
||||
bodyNewDropZone,
|
||||
{ headers: this.headers });
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,7 +36,6 @@ export class GearService extends BaseService {
|
||||
reserveCanopy: reserveCanopy
|
||||
};
|
||||
|
||||
this.http.post(`${this.apiUrl}/Gear`, bodyNewGear, { headers: this.headers})
|
||||
.subscribe(data => console.log(data));
|
||||
return this.http.post(`${this.apiUrl}/Gear`, bodyNewGear, { headers: this.headers});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,9 +24,8 @@ export class JumpTypeService extends BaseService {
|
||||
name: jumptypetName
|
||||
};
|
||||
|
||||
this.http.post(`${this.apiUrl}/JumpType`,
|
||||
bodyJumpType,
|
||||
{ headers: this.headers })
|
||||
.subscribe(data => console.log(data));
|
||||
return this.http.post(`${this.apiUrl}/JumpType`,
|
||||
bodyJumpType,
|
||||
{ headers: this.headers });
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user