From d3ccb82332f17ca824d2a506612920653dec85b8 Mon Sep 17 00:00:00 2001 From: David Wheatley Date: Mon, 12 Feb 2024 21:15:43 +0000 Subject: [PATCH 1/5] feat: filter DMI per-platform Fixes #119 --- src/components/AmeyLiveTrainAnnouncements.tsx | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/components/AmeyLiveTrainAnnouncements.tsx b/src/components/AmeyLiveTrainAnnouncements.tsx index cb5962555..80a622e09 100644 --- a/src/components/AmeyLiveTrainAnnouncements.tsx +++ b/src/components/AmeyLiveTrainAnnouncements.tsx @@ -1049,6 +1049,19 @@ export function LiveTrainAnnouncements({ enabledAnnouncements, ]) + const iframeQueryParams = new URLSearchParams({ + type: displayType, + station: selectedCrs, + noBg: '1', + hideSettings: '1', + }) + + Object.entries(systemKeyForPlatform) + .filter(([_, system]) => system !== null) + .forEach(([p]) => { + iframeQueryParams.append('platform', p) + }) + return (