diff options
Diffstat (limited to 'src/store/modules')
-rw-r--r-- | src/store/modules/Logs/EventLogStore.js | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/store/modules/Logs/EventLogStore.js b/src/store/modules/Logs/EventLogStore.js index c9bd82fd..f3980075 100644 --- a/src/store/modules/Logs/EventLogStore.js +++ b/src/store/modules/Logs/EventLogStore.js @@ -4,12 +4,14 @@ import i18n from '@/i18n'; const getHealthStatus = (events, loadedEvents) => { let status = loadedEvents ? 'OK' : ''; for (const event of events) { - if (event.severity === 'Warning') { - status = 'Warning'; - } - if (event.severity === 'Critical') { - status = 'Critical'; - break; + if (event.filterByStatus === 'Unresolved') { + if (event.severity === 'Warning') { + status = 'Warning'; + } + if (event.severity === 'Critical') { + status = 'Critical'; + break; + } } } return status; |