Skip to content

Commit

Permalink
support hiding mode icons
Browse files Browse the repository at this point in the history
  • Loading branch information
miles-grant-ibigroup committed Nov 21, 2023
1 parent cc21ea8 commit 5fbd247
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions example-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,7 @@ itinerary:
# BUS: # Any OTP mode
# color: 00FF00 # HEX color without the # (like GTFS)
# textColor: FFFFFF # HEX color without the # (like GTFS)
# routeIcons: false # If set to false, no mode icons in the route viewer
# - feedId: TriMet
# agencyId: TRIMET
# name: TriMet
Expand Down
2 changes: 1 addition & 1 deletion lib/components/viewers/RouteRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ export class RouteRow extends PureComponent {
>
<RouteDetailsContainer>
<OperatorLogo operator={operator} />
{route.mode && (
{route.mode && operator.routeIcons !== false && (
<ModeIconElement>
<ModeIcon
aria-label={getFormattedMode(
Expand Down

0 comments on commit 5fbd247

Please sign in to comment.