diff --git a/angular/src/app/_views/trip/trip-list/trip-list.component.ts b/angular/src/app/_views/trip/trip-list/trip-list.component.ts
index 23d43fb..6f6b267 100644
--- a/angular/src/app/_views/trip/trip-list/trip-list.component.ts
+++ b/angular/src/app/_views/trip/trip-list/trip-list.component.ts
@@ -6,6 +6,7 @@ import {TripService} from "@app/core/api/v1";
import {AppHelperService} from "@app/_helpers/app-helper.service";
import {FilterBarComponent} from "@app/_components/filter-bar/filter-bar.component";
import {ListGetDataFunctionType} from "@app/_components/list/list-get-data-function-type";
+import {Observable} from "rxjs";
@Component({
selector: 'app-trip-list',
@@ -116,4 +117,7 @@ export class TripListComponent {
);
}
+ get deleteItemFunction(): (id: string) => Observable
{
+ return (id: string) => this.tripService.tripsIdDelete(id);
+ }
}
diff --git a/angular/src/app/_views/trip/trip-location-list/trip-location-list.component.html b/angular/src/app/_views/trip/trip-location-list/trip-location-list.component.html
index b7fecb1..9ad12b9 100644
--- a/angular/src/app/_views/trip/trip-location-list/trip-location-list.component.html
+++ b/angular/src/app/_views/trip/trip-location-list/trip-location-list.component.html
@@ -1,10 +1,11 @@
\ No newline at end of file
diff --git a/angular/src/app/_views/trip/trip-location-list/trip-location-list.component.ts b/angular/src/app/_views/trip/trip-location-list/trip-location-list.component.ts
index 3531e82..b537191 100644
--- a/angular/src/app/_views/trip/trip-location-list/trip-location-list.component.ts
+++ b/angular/src/app/_views/trip/trip-location-list/trip-location-list.component.ts
@@ -7,6 +7,7 @@ import {FilterBarComponent} from "@app/_components/filter-bar/filter-bar.compone
import {ListGetDataFunctionType} from "@app/_components/list/list-get-data-function-type";
import {TripLocationFormComponent} from "@app/_views/trip/trip-location-form/trip-location-form.component";
import {map, tap} from "rxjs/operators";
+import {Observable} from "rxjs";
@Component({
selector: 'app-trip-location-list',
@@ -23,7 +24,7 @@ export class TripLocationListComponent {
protected dataFormComponentData: any;
constructor(
- private tripLocationService: TripLocationService,
+ public tripLocationService: TripLocationService,
protected appHelperService: AppHelperService,
) {
this.listColDefinitions = [
@@ -124,4 +125,8 @@ export class TripLocationListComponent {
})
);
}
+
+ get deleteItemFunction(): (id: string) => Observable {
+ return (id: string) => this.tripLocationService.tripLocationsIdDelete(id);
+ }
}
diff --git a/angular/src/app/_views/vessel/vessel-list/vessel-list.component.html b/angular/src/app/_views/vessel/vessel-list/vessel-list.component.html
index d98a3c0..7e08431 100644
--- a/angular/src/app/_views/vessel/vessel-list/vessel-list.component.html
+++ b/angular/src/app/_views/vessel/vessel-list/vessel-list.component.html
@@ -2,6 +2,7 @@
Observable {
+ return (id: string) => this.vesselService.vesselsIdDelete(id);
+ }
+
getCustomDetailLink(element: ZoneJsonld) {
return ROUTE_VESSELS + '/' + this.appHelperService.extractId(element?.id);
}
diff --git a/angular/src/app/_views/zone/zone-list/zone-list.component.html b/angular/src/app/_views/zone/zone-list/zone-list.component.html
index 9b90230..7c6cdfb 100644
--- a/angular/src/app/_views/zone/zone-list/zone-list.component.html
+++ b/angular/src/app/_views/zone/zone-list/zone-list.component.html
@@ -2,6 +2,7 @@
Observable {
+ return (id: string) => this.zoneService.zonesIdDelete(id);
+ }
+
getCustomDetailLink(element: ZoneJsonld) {
return ROUTE_ZONES + '/' + this.appHelperService.extractId(element?.id);
}