summaryrefslogtreecommitdiff
path: root/src/store/modules
diff options
context:
space:
mode:
authorVitalii Lysak <v.lysak@dunice.net>2022-08-09 12:40:12 +0300
committerVitalii Lysak <v.lysak@dunice.net>2022-08-09 12:40:12 +0300
commitebb64e0052f55ccdb403c4484f9a3a365ffd283f (patch)
tree490983a44814d8fce3764193561888f976c7daf8 /src/store/modules
parentb735d7c92f507fb1fc5f489e6b2c841575082260 (diff)
downloadwebui-vue-ebb64e0052f55ccdb403c4484f9a3a365ffd283f.tar.xz
SILABMC-226: event additional data
Diffstat (limited to 'src/store/modules')
-rw-r--r--src/store/modules/Logs/EventLogStore.js10
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')