Add the "delete flight" in the table
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user