Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

:lipstick: Adds Red styling for Line Closed status

Alicia Sykesc12eac2bbfe4
diff --git a/src/components/Widgets/TflStatus.vue b/src/components/Widgets/TflStatus.vue
index ea92b4e4..14bb21f4 100644
--- a/src/components/Widgets/TflStatus.vue
+++ b/src/components/Widgets/TflStatus.vue
@@ -84,6 +84,7 @@ export default {
getStatusColor(code) {
if (code <= 6) return 'red';
if (code <= 9) return 'orange';
+ if (code === 20) return 'dark';
return 'green';
},
/* If user only wants to see results from certain lines, filter the rest out */
@@ -128,6 +129,7 @@ export default {
&.green { color: var(--success); }
&.orange { color: var(--warning); }
&.red { color: var(--danger); }
+ &.dark { color: #fa360f; }
}
.disruption {
opacity: var(--dimming-factor);