summaryrefslogtreecommitdiff
path: root/src/store
diff options
context:
space:
mode:
authorKenneth <kennyneedsmilky@gmail.com>2021-12-01 02:04:58 +0300
committerDixsie Wolmers <dixsiew@gmail.com>2022-01-07 19:27:11 +0300
commitc2c53aa9048ecc2d26e6b0a92b0e55511377cf97 (patch)
treec64e476b72be9cd30031ae9cc5c71c1372dbcfdd /src/store
parent77e64901f7334773d85fefab5e5623fa0e6ec499 (diff)
downloadwebui-vue-c2c53aa9048ecc2d26e6b0a92b0e55511377cf97.tar.xz
Fixed vuex dumps errors
Refactored getters and dispatch names were not matching the getters and actions strings, which made dumps not work. Made the getters and dispatch names match the vuex getters and actions strings to the refactored codebase. Signed-off-by: Kenneth Fullbright <kennyneedsmilky@gmail.com> Change-Id: I414a7f85ef70c270785b825b3b14f9dfb27a33a7
Diffstat (limited to 'src/store')
-rw-r--r--src/store/modules/Logs/DumpsStore.js10
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(