summaryrefslogtreecommitdiff
path: root/src/views/HardwareStatus/Inventory/InventoryTableChassis.vue
diff options
context:
space:
mode:
authorKenneth Fullbright <kennyneedsmilky@gmail.com>2021-12-28 01:19:37 +0300
committerDixsie Wolmers <dixsiew@gmail.com>2022-02-04 17:28:46 +0300
commit410578537f7ca6dd76aa406b440b0a435606c448 (patch)
tree6a2530310fc5cbfdd70905af6a49e8bf176a4a16 /src/views/HardwareStatus/Inventory/InventoryTableChassis.vue
parentb86f4152ba832ba92a2607c30037d5f818058120 (diff)
downloadwebui-vue-410578537f7ca6dd76aa406b440b0a435606c448.tar.xz
Set table busy state on load
- Add busy prop to tables Signed-off-by: Kenneth Fullbright <kennyneedsmilky@gmail.com> Change-Id: I4416f12967c9a0ad6c8bb782c7d8de5c17fdd195
Diffstat (limited to 'src/views/HardwareStatus/Inventory/InventoryTableChassis.vue')
-rw-r--r--src/views/HardwareStatus/Inventory/InventoryTableChassis.vue3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/views/HardwareStatus/Inventory/InventoryTableChassis.vue b/src/views/HardwareStatus/Inventory/InventoryTableChassis.vue
index 3f63c06c..b49cec7f 100644
--- a/src/views/HardwareStatus/Inventory/InventoryTableChassis.vue
+++ b/src/views/HardwareStatus/Inventory/InventoryTableChassis.vue
@@ -7,6 +7,7 @@
:fields="fields"
show-empty
:empty-text="$t('global.table.emptyMessage')"
+ :busy="isBusy"
>
<!-- Expand chevron icon -->
<template #cell(expandRow)="row">
@@ -128,6 +129,7 @@ export default {
mixins: [BVToastMixin, TableRowExpandMixin, DataFormatterMixin],
data() {
return {
+ isBusy: true,
fields: [
{
key: 'expandRow',
@@ -168,6 +170,7 @@ export default {
this.$store.dispatch('chassis/getChassisInfo').finally(() => {
// Emit initial data fetch complete to parent component
this.$root.$emit('hardware-status-chassis-complete');
+ this.isBusy = false;
});
},
methods: {