File tree 5 files changed +12
-6
lines changed
5 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -308,6 +308,8 @@ itinerary:
308
308
disableMetroSeperatorDot : false
309
309
# Shows the duration of a leg below the leg in the metro itinerary summary
310
310
showLegDurations : false
311
+ # Allows calorie counts to be hidden
312
+ displayCalories : true
311
313
312
314
# The transitOperators key is a list of transit operators that can be used to
313
315
# order transit agencies when sorting by route. Also, this can optionally
Original file line number Diff line number Diff line change @@ -16,6 +16,10 @@ const mapStateToProps = (state) => {
16
16
const { itinerary } = state . otp . config
17
17
return {
18
18
defaultFareKey : itinerary ?. defaultFareKey || undefined ,
19
+ displayCalories :
20
+ typeof itinerary ?. displayCalories === 'boolean'
21
+ ? itinerary ?. displayCalories
22
+ : undefined ,
19
23
fareDetailsLayout : itinerary ?. fareDetailsLayout || undefined ,
20
24
fareKeyNameMap : itinerary ?. fareKeyNameMap || { }
21
25
}
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ export function localizeGradationMap(
19
19
gradationMap ?: Record < string , any >
20
20
) : Record < string , any > {
21
21
if ( ! gradationMap ) return { }
22
- const newGradationMap : Record < string , any > = { }
22
+ const newGradationMap : Record < string , any > = { ... gradationMap }
23
23
24
24
Object . keys ( newGradationMap ) . forEach ( ( key ) => {
25
25
// As these localization keys are in the config, rather than
Original file line number Diff line number Diff line change 54
54
"@opentripplanner/stops-overlay" : " ^5.0.2" ,
55
55
"@opentripplanner/transit-vehicle-overlay" : " ^3.0.2" ,
56
56
"@opentripplanner/transitive-overlay" : " ^3.0.3" ,
57
- "@opentripplanner/trip-details" : " ^2.2.2 " ,
57
+ "@opentripplanner/trip-details" : " ^2.2.3 " ,
58
58
"@opentripplanner/trip-form" : " ^2.0.3" ,
59
59
"@opentripplanner/trip-viewer-overlay" : " ^2.0.2" ,
60
60
"@opentripplanner/vehicle-rental-overlay" : " ^2.0.2" ,
Original file line number Diff line number Diff line change 2686
2686
"@turf/bbox" "^6.5.0"
2687
2687
lodash.isequal "^4.5.0"
2688
2688
2689
- "@opentripplanner/trip-details@^2.2.2 ":
2690
- version "2.2.2 "
2691
- resolved "https://registry.yarnpkg.com/@opentripplanner/trip-details/-/trip-details-2.2.2 .tgz#dae64b4177c135166886d4f8f2ab0715a165c413 "
2692
- integrity sha512-lYkrrWU5ytYhbZlvcoo7UdeZwWqFsf3mqTvtKKJBe7IrCEoG7hLlcUaVDHAUieGkkQiMLGv91BdZ2ANhe2s45Q ==
2689
+ "@opentripplanner/trip-details@^2.2.3 ":
2690
+ version "2.2.3 "
2691
+ resolved "https://registry.yarnpkg.com/@opentripplanner/trip-details/-/trip-details-2.2.3 .tgz#9af2e8466c8d7ee59749e81353ed1caa22284c24 "
2692
+ integrity sha512-Ky0SYND1Z2GofxHYCavgxLNQcbslc4S81f7chTdvpww/TPt4TTr2j0WGcBVnoW3uNo2QCSSCXk7J65kPoDLQsQ ==
2693
2693
dependencies:
2694
2694
"@opentripplanner/core-utils" "^7.0.3"
2695
2695
"@styled-icons/fa-solid" "^10.34.0"
You can’t perform that action at this time.
0 commit comments