diff options
Diffstat (limited to 'src/store/modules/Logs/DumpsStore.js')
-rw-r--r-- | src/store/modules/Logs/DumpsStore.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/store/modules/Logs/DumpsStore.js b/src/store/modules/Logs/DumpsStore.js index 3b91354b..ac61d2dc 100644 --- a/src/store/modules/Logs/DumpsStore.js +++ b/src/store/modules/Logs/DumpsStore.js @@ -4,14 +4,14 @@ import i18n from '@/i18n'; const DumpsStore = { namespaced: true, state: { - bmcDumps: [], + allDumps: [], }, getters: { - bmcDumps: (state) => state.bmcDumps, + allDumps: (state) => state.allDumps, }, mutations: { setBmcDumps: (state, dumps) => { - state.bmcDumps = dumps.map((dump) => ({ + state.allDumps = dumps.map((dump) => ({ data: dump.AdditionalDataURI, dateTime: new Date(dump.Created), dumpType: dump.Name, @@ -22,7 +22,7 @@ const DumpsStore = { }, }, actions: { - async getBmcDumps({ commit }) { + async getBmcDumpEntries({ commit }) { return await api .get('/redfish/v1/Managers/bmc/LogServices/Dump/Entries') .then(({ data = {} }) => commit('setBmcDumps', data.Members || [])) @@ -66,7 +66,7 @@ const DumpsStore = { return await api .all(promises) .then((response) => { - dispatch('getBmcDumps'); + dispatch('getBmcDumpEntries'); return response; }) .then( |