Skip to content

Commit 3e7c44c

Browse files
committed
DT-6646 visible alert icon
1 parent 5e11f5d commit 3e7c44c

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

src/defaultConfig.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,6 @@ export default {
7777
inUse: false,
7878
},
7979
lineCodeMaxLength: 7, // Maximum length of line code to show in the monitor, values larger than 7 are not supported by horizontal layouts
80+
rtVehicleOffsetSeconds: 120, // How many seconds in the future the real-time vehicle should be shown
81+
alertIcon: 'alert',
8082
};

src/monitorConfig.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,5 +216,6 @@ export default {
216216
map: {
217217
inUse: true,
218218
},
219+
alertIcon: 'query-error-alert',
219220
},
220221
};

src/ui/MonitorRow.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -287,13 +287,13 @@ const MonitorRow: FC<IProps> = ({
287287
)}
288288
</div>
289289
<div className="via-destination">
290-
{isCancelled && <Icon img={'alert'} />}
290+
{isCancelled && <Icon img={config.alertIcon} />}
291291
{t('cancelled', { lng: currentLang })}
292292
</div>
293293
</>
294294
) : (
295295
<>
296-
<Icon img={'alert'} />
296+
<Icon img={config.alertIcon} />
297297
<div className="cancelled-row">
298298
{t('cancelled', { lng: currentLang })}
299299
</div>
@@ -315,7 +315,7 @@ const MonitorRow: FC<IProps> = ({
315315
)}
316316
</div>
317317
<div className="via-destination">
318-
{isCancelled && <Icon img={'alert'} />}
318+
{isCancelled && <Icon img={config.alertIcon} />}
319319
{viaDestination ||
320320
(isCancelled && t('cancelled', { lng: currentLang }))}
321321
{replaceViaMetroStringWithIcon && (
@@ -332,7 +332,7 @@ const MonitorRow: FC<IProps> = ({
332332
</>
333333
) : (
334334
<>
335-
{isCancelled && <Icon img={'alert'} />}
335+
{isCancelled && <Icon img={config.alertIcon} />}
336336
<div className="destination-row">
337337
{destination}
338338
{replaceMetroStringWithIcon && (

0 commit comments

Comments
 (0)