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
diff --git a/src/store/modules/Logs/DumpsStore.js b/src/store/modules/Logs/DumpsStore.js
index 3b91354..ac61d2d 100644
--- a/src/store/modules/Logs/DumpsStore.js
+++ b/src/store/modules/Logs/DumpsStore.js
@@ -4,14 +4,14 @@
 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 @@
     },
   },
   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 @@
       return await api
         .all(promises)
         .then((response) => {
-          dispatch('getBmcDumps');
+          dispatch('getBmcDumpEntries');
           return response;
         })
         .then(
diff --git a/src/views/Logs/Dumps/Dumps.vue b/src/views/Logs/Dumps/Dumps.vue
index f4f6451..a6dc10f 100644
--- a/src/views/Logs/Dumps/Dumps.vue
+++ b/src/views/Logs/Dumps/Dumps.vue
@@ -245,7 +245,7 @@
   },
   computed: {
     dumps() {
-      return this.$store.getters['dumps/bmcDumps'];
+      return this.$store.getters['dumps/allDumps'];
     },
     tableItems() {
       return this.dumps.map((item) => {
@@ -280,7 +280,9 @@
   },
   created() {
     this.startLoader();
-    this.$store.dispatch('dumps/getBmcDumps').finally(() => this.endLoader());
+    this.$store
+      .dispatch('dumps/getBmcDumpEntries')
+      .finally(() => this.endLoader());
   },
   methods: {
     convertBytesToMegabytes(bytes) {
diff --git a/src/views/Overview/OverviewDumps.vue b/src/views/Overview/OverviewDumps.vue
index 35ab567..a2ae4e4 100644
--- a/src/views/Overview/OverviewDumps.vue
+++ b/src/views/Overview/OverviewDumps.vue
@@ -30,11 +30,11 @@
   mixins: [DataFormatterMixin],
   computed: {
     dumps() {
-      return this.$store.getters['dumps/bmcDumps'];
+      return this.$store.getters['dumps/allDumps'];
     },
   },
   created() {
-    this.$store.dispatch('dumps/getBmcDumps').finally(() => {
+    this.$store.dispatch('dumps/getBmcDumpEntries').finally(() => {
       this.$root.$emit('overview-dumps-complete');
     });
   },