From 410578537f7ca6dd76aa406b440b0a435606c448 Mon Sep 17 00:00:00 2001
From: Kenneth Fullbright <kennyneedsmilky@gmail.com>
Date: Mon, 27 Dec 2021 16:19:37 -0600
Subject: Set table busy state on load

- Add busy prop to tables

Signed-off-by: Kenneth Fullbright <kennyneedsmilky@gmail.com>
Change-Id: I4416f12967c9a0ad6c8bb782c7d8de5c17fdd195
---
 src/views/Logs/Dumps/Dumps.vue | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 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 179a503e..81c9de04 100644
--- a/src/views/Logs/Dumps/Dumps.vue
+++ b/src/views/Logs/Dumps/Dumps.vue
@@ -59,8 +59,9 @@
             :empty-text="$t('global.table.emptyMessage')"
             :empty-filtered-text="$t('global.table.emptySearchMessage')"
             :filter="searchFilter"
-            @filtered="onFiltered"
-            @row-selected="onRowSelected($event, filteredDumps.length)"
+            :busy="isBusy"
+            @filtered="onChangeSearchFilter"
+            @row-selected="onRowSelected($event, filteredTableItems.length)"
           >
             <!-- Checkbox column -->
             <template #head(checkbox)>
@@ -201,6 +202,7 @@ export default {
   },
   data() {
     return {
+      isBusy: true,
       fields: [
         {
           key: 'checkbox',
@@ -304,7 +306,10 @@ export default {
   },
   created() {
     this.startLoader();
-    this.$store.dispatch('dumps/getAllDumps').finally(() => this.endLoader());
+    this.$store.dispatch('dumps/getBmcDumpEntries').finally(() => {
+      this.endLoader();
+      this.isBusy = false;
+    });
   },
   methods: {
     convertBytesToMegabytes(bytes) {
-- 
cgit v1.2.3

