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!

πŸ› Fix to update alert end / not begin

Alicia Sykesbf10fc1ec242
diff --git a/src/components/Widgets/GlAlerts.vue b/src/components/Widgets/GlAlerts.vue
index d0306a3b..2f64ce03 100644
--- a/src/components/Widgets/GlAlerts.vue
+++ b/src/components/Widgets/GlAlerts.vue
@@ -49,7 +49,7 @@ export default {
time: timestampToDateTime(alert.begin * 1000),
ongoing: (alert.end === -1),
timeAgo: getTimeAgo(alert.begin * 1000),
- lasted: alert.begin ? getTimeDifference(alert.begin * 1000, alert.end * 1000) : 'Ongoing',
+ lasted: alert.end !== -1 ? getTimeDifference(alert.begin * 1000, alert.end * 1000) : 'Ongoing',
severity: alert.state,
category: alert.type,
value: round(alert.sum),