mirror of
https://github.com/Lissy93/dashy.git
synced 2024-11-28 05:14:08 +03:00
🚋 Updates train status codes
This commit is contained in:
parent
d5432774cc
commit
d3c4fb50ae
@ -82,10 +82,11 @@ export default {
|
|||||||
},
|
},
|
||||||
/* Get color, depending on the status code */
|
/* Get color, depending on the status code */
|
||||||
getStatusColor(code) {
|
getStatusColor(code) {
|
||||||
if (code <= 6) return 'red';
|
if (code === 20) return 'dark'; // Strike action
|
||||||
if (code <= 9) return 'orange';
|
if (code === 0) return 'info'; // Special service or upcoming planned works
|
||||||
if (code === 20) return 'dark';
|
if (code <= 6) return 'red'; // Closed, part-closed or severe delays
|
||||||
return 'green';
|
if (code <= 9) return 'orange'; // Minor delays, planned bus replacement
|
||||||
|
return 'green'; // Good Service - Everything is awesome!
|
||||||
},
|
},
|
||||||
/* If user only wants to see results from certain lines, filter the rest out */
|
/* If user only wants to see results from certain lines, filter the rest out */
|
||||||
filterByLineName(allLines, usersLines) {
|
filterByLineName(allLines, usersLines) {
|
||||||
@ -129,6 +130,7 @@ export default {
|
|||||||
&.green { color: var(--success); }
|
&.green { color: var(--success); }
|
||||||
&.orange { color: var(--warning); }
|
&.orange { color: var(--warning); }
|
||||||
&.red { color: var(--danger); }
|
&.red { color: var(--danger); }
|
||||||
|
&.info { color: var(--info); }
|
||||||
&.dark { color: #fa360f; }
|
&.dark { color: #fa360f; }
|
||||||
}
|
}
|
||||||
.disruption {
|
.disruption {
|
||||||
|
Loading…
Reference in New Issue
Block a user