Add menu for editing legs

This commit is contained in:
2025-07-06 21:42:06 +02:00
parent 098addc4e8
commit 3b14fa6c51
5 changed files with 58 additions and 3 deletions

View File

@@ -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 {