summaryrefslogtreecommitdiff
path: root/src/store/plugins
diff options
context:
space:
mode:
authorVitalii Lysak <v.lysak@dunice.net>2022-09-01 10:43:25 +0300
committerVitalii Lysak <v.lysak@dunice.net>2022-09-01 10:43:25 +0300
commit53e003b2502a8b01afdd65ff1c3fd2c485419bd5 (patch)
tree192b2e4e27de0c4f9572754a4ab40d0039fcdb51 /src/store/plugins
parentdfc9ebca8098af82994ca6fc8067cc4f8fad5e18 (diff)
downloadwebui-vue-53e003b2502a8b01afdd65ff1c3fd2c485419bd5.tar.xz
SILABMC-259: upd bmc time if server status change
Diffstat (limited to 'src/store/plugins')
-rw-r--r--src/store/plugins/WebSocketPlugin.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/store/plugins/WebSocketPlugin.js b/src/store/plugins/WebSocketPlugin.js
index afad6718..29a98c20 100644
--- a/src/store/plugins/WebSocketPlugin.js
+++ b/src/store/plugins/WebSocketPlugin.js
@@ -39,7 +39,7 @@ const WebSocketPlugin = (store) => {
if (eventInterface === 'xyz.openbmc_project.State.Host') {
const { properties: { CurrentHostState } = {} } = data;
if (CurrentHostState) {
- store.commit('global/setServerStatus', CurrentHostState);
+ store.dispatch('global/changeServerStatus', CurrentHostState);
}
} else if (path === '/xyz/openbmc_project/logging') {
store.dispatch('eventLog/getEventLogData');