diff options
author | Vitalii Lysak <v.lysak@dunice.net> | 2022-08-11 12:27:57 +0300 |
---|---|---|
committer | Vitalii Lysak <v.lysak@dunice.net> | 2022-08-11 12:27:57 +0300 |
commit | 40d9240aa6633bd9bfe457c454a6bb905637d383 (patch) | |
tree | acf666f115a35343265917f1b9e3a9a5faaf4829 | |
parent | 3677668b5193979db89c4fc38ea9f3db72a31c6d (diff) | |
download | webui-vue-40d9240aa6633bd9bfe457c454a6bb905637d383.tar.xz |
SILABMC-239: upd status logic of server
-rw-r--r-- | src/store/modules/Logs/EventLogStore.js | 4 |
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; } |