From 5fbd2473f4014147e153c860270131d8cdc368f1 Mon Sep 17 00:00:00 2001 From: miles-grant-ibigroup Date: Tue, 21 Nov 2023 14:34:27 +0100 Subject: [PATCH] support hiding mode icons --- example-config.yml | 1 + lib/components/viewers/RouteRow.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/example-config.yml b/example-config.yml index e820d7b34..554c8ee6a 100644 --- a/example-config.yml +++ b/example-config.yml @@ -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 diff --git a/lib/components/viewers/RouteRow.js b/lib/components/viewers/RouteRow.js index 9bc8631a2..93ad0634a 100644 --- a/lib/components/viewers/RouteRow.js +++ b/lib/components/viewers/RouteRow.js @@ -176,7 +176,7 @@ export class RouteRow extends PureComponent { > - {route.mode && ( + {route.mode && operator.routeIcons !== false && (