diff options
author | Vitalii Lysak <v.lysak@dunice.net> | 2022-08-09 12:40:12 +0300 |
---|---|---|
committer | Vitalii Lysak <v.lysak@dunice.net> | 2022-08-09 12:40:12 +0300 |
commit | ebb64e0052f55ccdb403c4484f9a3a365ffd283f (patch) | |
tree | 490983a44814d8fce3764193561888f976c7daf8 /src/store/modules | |
parent | b735d7c92f507fb1fc5f489e6b2c841575082260 (diff) | |
download | webui-vue-ebb64e0052f55ccdb403c4484f9a3a365ffd283f.tar.xz |
SILABMC-226: event additional data
Diffstat (limited to 'src/store/modules')
-rw-r--r-- | src/store/modules/Logs/EventLogStore.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/store/modules/Logs/EventLogStore.js b/src/store/modules/Logs/EventLogStore.js index c9bd82fd..d67d6959 100644 --- a/src/store/modules/Logs/EventLogStore.js +++ b/src/store/modules/Logs/EventLogStore.js @@ -24,6 +24,7 @@ const EventLogStore = { namespaced: true, state: { allEvents: [], + additionalData: [], loadedEvents: false, }, getters: { @@ -31,13 +32,22 @@ const EventLogStore = { highPriorityEvents: (state) => getHighPriorityEvents(state.allEvents), healthStatus: (state) => getHealthStatus(state.allEvents, state.loadedEvents), + additionalData: (state) => state.additionalData, }, mutations: { setAllEvents: (state, allEvents) => ( (state.allEvents = allEvents), (state.loadedEvents = true) ), + setAdditionalData: (state, data) => { + state.additionalData = data; + }, }, actions: { + async getAdditionalData({ commit }, url) { + return await api.get(`${url}/`).then((data) => { + commit('setAdditionalData', data); + }); + }, async getEventLogData({ commit }) { return await api .get('/redfish/v1/Systems/system/LogServices/EventLog/Entries') |