summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVitalii Lysak <v.lysak@dunice.net>2022-08-11 12:27:57 +0300
committerVitalii Lysak <v.lysak@dunice.net>2022-08-11 12:27:57 +0300
commit40d9240aa6633bd9bfe457c454a6bb905637d383 (patch)
treeacf666f115a35343265917f1b9e3a9a5faaf4829 /src
parent3677668b5193979db89c4fc38ea9f3db72a31c6d (diff)
downloadwebui-vue-40d9240aa6633bd9bfe457c454a6bb905637d383.tar.xz
SILABMC-239: upd status logic of server
Diffstat (limited to 'src')
-rw-r--r--src/store/modules/Logs/EventLogStore.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/store/modules/Logs/EventLogStore.js b/src/store/modules/Logs/EventLogStore.js
index d67d6959..a22935a7 100644
--- a/src/store/modules/Logs/EventLogStore.js
+++ b/src/store/modules/Logs/EventLogStore.js
@@ -4,10 +4,10 @@ import i18n from '@/i18n';
const getHealthStatus = (events, loadedEvents) => {
let status = loadedEvents ? 'OK' : '';
for (const event of events) {
- if (event.severity === 'Warning') {
+ if (!event.status && event.severity === 'Warning') {
status = 'Warning';
}
- if (event.severity === 'Critical') {
+ if (!event.status && event.severity === 'Critical') {
status = 'Critical';
break;
}