mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-02 17:26:24 +00:00
feat(planner): edit the trip from its settings in the planner (#2811)
The trip form was mounted in the planner but nothing opened it, so title, dates, cover and currency could only be changed from My Trips. Trip settings now lists Edit Trip at the foot of its areas for anyone with trip_edit; it swaps the dialog for the trip form. The phone already has Edit Trip in the More sheet.
This commit is contained in:
@@ -8,6 +8,8 @@ interface TripMembersModalProps {
|
||||
/** Called after the roster changes (guest/member added, renamed or removed) so the
|
||||
* planner can refresh its members for Costs participants, Collab, etc. */
|
||||
onMembersChanged?: () => void
|
||||
/** Opens the trip's form from the dialog, for someone who may edit the trip (#2811). */
|
||||
onEditTrip?: () => void
|
||||
}
|
||||
|
||||
/** Share: the trip's members, guests and links. The phone has its own sheet (MTripSettingsSheet) on the same hooks. */
|
||||
|
||||
Reference in New Issue
Block a user