π A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!
Vue awesomedashboarddockerhomelabhomepagemitnodejsorganizationproductivitypwaself-hostedstartpagevue
π₯ Catch all error cases for healthchecks widget
Alicia Sykes5b11e6cb3ff8
diff --git a/src/components/Widgets/HealthChecks.vue b/src/components/Widgets/HealthChecks.vueindex ae99ae42..31e61332 100644--- a/src/components/Widgets/HealthChecks.vue+++ b/src/components/Widgets/HealthChecks.vue@@ -5,7 +5,7 @@:key="cron.id"><div class="status">- <p :class="cron.status">{{ formatStatus(cron.status) }}</p>+ <p :class="cron.status || 'unknown'">{{ formatStatus(cron.status) }}</p></div><divclass="info"@@ -47,14 +47,12 @@ export default {},},methods: {+ /* Make status summary (emoji + name) */formatStatus(status) {- let symbol = '';- if (status === 'up') symbol = 'β';- if (status === 'down') symbol = 'β';- if (status === 'new') symbol = 'β';- if (status === 'paused') symbol = 'βΈ';- if (status === 'running') symbol = 'βΆ';- return `${symbol} ${capitalize(status)}`;+ const symbols = {+ up: 'β', down: 'β', new: 'β', paused: 'βΈ', grace: 'β ', started: 'βΆ',+ };+ return `${symbols[status] || 'β'} ${capitalize(status || 'unknown')}`;},formatDate(timestamp) {return timestampToDateTime(timestamp);@@ -133,7 +131,9 @@ export default {&.up { color: var(--success); }&.down { color: var(--danger); }&.new { color: var(--widget-text-color); }- &.running { color: var(--warning); }+ &.grace { color: var(--warning); }+ &.unknown { color: var(--warning); }+ &.started { color: var(--info); }&.paused { color: var(--info); }}}