Add menu for editing legs
This commit is contained in:
@@ -81,6 +81,14 @@ export class LegsDataStore {
|
||||
|
||||
this.write();
|
||||
}
|
||||
|
||||
forget(trip_id, origin_location_id, destination_location_id) {
|
||||
this.data = this.data.filter((leg) => {
|
||||
return !(leg.trip_id == trip_id && leg.origin_location_id == origin_location_id && leg.destination_location_id == destination_location_id);
|
||||
});
|
||||
|
||||
this.write();
|
||||
}
|
||||
}
|
||||
|
||||
export class TripsDataStore {
|
||||
|
Reference in New Issue
Block a user