Add the "delete flight" in the table

This commit is contained in:
Sébastien ANDRE
2023-12-04 14:35:44 +01:00
parent ff2fc96575
commit be6f9af954
6 changed files with 30 additions and 7 deletions

View File

@@ -101,9 +101,7 @@ export class JumpService extends BaseService {
}
public deleteJump(item: Jump) {
this.http.delete(`${this.apiUrl}/Jump/${item.id}`,
{ headers: this.headers, })
.subscribe();
this.http.delete(`${this.apiUrl}/Jump/${item.id}`, { headers: this.headers }).subscribe();
}
public updateJump(id: number,

View File

@@ -50,6 +50,10 @@ export class TunnelFlightService extends BaseService {
);
}
public deleteTunnelFlight(item: TunnelFlight) {
this.http.delete(`${this.apiUrl}/TunnelFlight/${item.id}`, { headers: this.headers }).subscribe();
}
public getTunnelFlightsByMonth(begin: Date, end: Date): Observable<Array<TunnelFlightByMonth>> {
let beginDate = this.datePipe.transform(begin, "yyyy-MM-dd");
let endDate = this.datePipe.transform(end, "yyyy-MM-dd");