From ff9c484c02cb132499e00528f9dad15cb70626f1 Mon Sep 17 00:00:00 2001 From: David Wheatley Date: Sun, 22 Sep 2024 02:09:36 +0100 Subject: [PATCH 1/3] fix: don't include destination in rtt import calling points --- src/data/RttUtils.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/data/RttUtils.ts b/src/data/RttUtils.ts index bc7674730..fee2c4b50 100644 --- a/src/data/RttUtils.ts +++ b/src/data/RttUtils.ts @@ -23,12 +23,14 @@ export class RttUtils { return this.getEligibleLocationsInternal(rttService) .slice(fromLocationIndex + 1) - .filter(l => { - if (!l.isPublicCall || l.displayAs === 'CANCELLED_CALL') return false + .filter((l, i, arr) => { + if (!l.isPublicCall || l.displayAs === 'CANCELLED_CALL' || l.displayAs === 'DESTINATION' || l.displayAs === 'TERMINATES') return false if (!l.crs) { console.warn(`Location ${l.tiploc} has no CRS code`) return false } + // Ignore destination in calling points + if (i === arr.length - 1 && l.destination.some(d => d.tiploc === l.tiploc)) return false return true }) .map(l => ({ From 94039eb2b8d3d0fee93a048f53d47a0e7c40784e Mon Sep 17 00:00:00 2001 From: David Wheatley Date: Sun, 22 Sep 2024 02:09:58 +0100 Subject: [PATCH 2/3] fix: css fixes for rtt modal --- src/components/ImportStateFromRtt.tsx | 49 +++++++++++++++++++++++---- 1 file changed, 43 insertions(+), 6 deletions(-) diff --git a/src/components/ImportStateFromRtt.tsx b/src/components/ImportStateFromRtt.tsx index 70b34cdb1..868bc7139 100644 --- a/src/components/ImportStateFromRtt.tsx +++ b/src/components/ImportStateFromRtt.tsx @@ -292,7 +292,7 @@ export default function ImportStateFromRtt({ importStateFromRttService, disabled } return ( -