Skip to content

Commit

Permalink
feat: add new config item to example config
Browse files Browse the repository at this point in the history
  • Loading branch information
josh-willis-arcadis committed Dec 5, 2024
1 parent f7ed865 commit f7501c9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions example-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,8 @@ itinerary:
showPlanFirstLastButtons: false
# adds the 'about' and '~' prefixes to the duration of non transit legs and trip details panel
showApproximatePrefixAccessLegs: false
# Whether to show the effective date and time of alerts
showAlertEffectiveDateTimeText: true
# Show all walking legs regardless of distance
showAllWalkLegs: false
# Filters out trips returned by OTP by default, unless specifically requested.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ class ConnectedItineraryBody extends Component {
const allowUserAlertCollapsing = config?.itinerary?.allowUserAlertCollapsing
const showApproximatePrefixAccessLegs =
config?.itinerary?.showApproximatePrefixAccessLegs
const showAlertEffectiveDateTimeText =
config?.itinerary?.showAlertEffectiveDateTimeText

// Support OTP1 flex messages in Trip Details
// Adding empty pickupBookingInfo and dropOffBookingInfo objects
Expand Down Expand Up @@ -139,6 +141,7 @@ class ConnectedItineraryBody extends Component {
setMainPanelContent(MainPanelContent.TRIP_VIEWER)
}}
showAgencyInfo
showAlertEffectiveDateTimeText={showAlertEffectiveDateTimeText}
showApproximateAccessLegTravelTimes={showApproximatePrefixAccessLegs}
showElevationProfile={config.elevationProfile}
showLegIcon
Expand Down

0 comments on commit f7501c9

Please sign in to comment.