From c2c53aa9048ecc2d26e6b0a92b0e55511377cf97 Mon Sep 17 00:00:00 2001
From: Kenneth <kennyneedsmilky@gmail.com>
Date: Tue, 30 Nov 2021 17:04:58 -0600
Subject: 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
---
 src/views/Logs/Dumps/Dumps.vue | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

(limited to 'src/views/Logs/Dumps/Dumps.vue')

diff --git a/src/views/Logs/Dumps/Dumps.vue b/src/views/Logs/Dumps/Dumps.vue
index f4f64515..a6dc10f5 100644
--- a/src/views/Logs/Dumps/Dumps.vue
+++ b/src/views/Logs/Dumps/Dumps.vue
@@ -245,7 +245,7 @@ export default {
   },
   computed: {
     dumps() {
-      return this.$store.getters['dumps/bmcDumps'];
+      return this.$store.getters['dumps/allDumps'];
     },
     tableItems() {
       return this.dumps.map((item) => {
@@ -280,7 +280,9 @@ export default {
   },
   created() {
     this.startLoader();
-    this.$store.dispatch('dumps/getBmcDumps').finally(() => this.endLoader());
+    this.$store
+      .dispatch('dumps/getBmcDumpEntries')
+      .finally(() => this.endLoader());
   },
   methods: {
     convertBytesToMegabytes(bytes) {
-- 
cgit v1.2.3

