diff options
Diffstat (limited to 'src/views/HardwareStatus')
9 files changed, 30 insertions, 3 deletions
diff --git a/src/views/HardwareStatus/Inventory/InventoryTableAssembly.vue b/src/views/HardwareStatus/Inventory/InventoryTableAssembly.vue index afc14704..b4010bfe 100644 --- a/src/views/HardwareStatus/Inventory/InventoryTableAssembly.vue +++ b/src/views/HardwareStatus/Inventory/InventoryTableAssembly.vue @@ -9,6 +9,7 @@ :fields="fields" show-empty :empty-text="$t('global.table.emptyMessage')" + :busy="isBusy" > <!-- Expand chevron icon --> <template #cell(expandRow)="row"> @@ -81,6 +82,7 @@ export default { mixins: [BVToastMixin, TableRowExpandMixin, DataFormatterMixin], data() { return { + isBusy: true, fields: [ { key: 'expandRow', @@ -130,6 +132,7 @@ export default { this.$store.dispatch('assemblies/getAssemblyInfo').finally(() => { // Emit initial data fetch complete to parent component this.$root.$emit('hardware-status-assembly-complete'); + this.isBusy = false; }); }, methods: { diff --git a/src/views/HardwareStatus/Inventory/InventoryTableBmcManager.vue b/src/views/HardwareStatus/Inventory/InventoryTableBmcManager.vue index ad73f59e..48b914f4 100644 --- a/src/views/HardwareStatus/Inventory/InventoryTableBmcManager.vue +++ b/src/views/HardwareStatus/Inventory/InventoryTableBmcManager.vue @@ -7,6 +7,7 @@ :fields="fields" show-empty :empty-text="$t('global.table.emptyMessage')" + :busy="isBusy" > <!-- Expand chevron icon --> <template #cell(expandRow)="row"> @@ -175,6 +176,7 @@ export default { mixins: [BVToastMixin, TableRowExpandMixin, DataFormatterMixin], data() { return { + isBusy: true, fields: [ { key: 'expandRow', @@ -221,6 +223,7 @@ export default { this.$store.dispatch('bmc/getBmcInfo').finally(() => { // Emit initial data fetch complete to parent component this.$root.$emit('hardware-status-bmc-manager-complete'); + this.isBusy = false; }); }, methods: { 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: { diff --git a/src/views/HardwareStatus/Inventory/InventoryTableDimmSlot.vue b/src/views/HardwareStatus/Inventory/InventoryTableDimmSlot.vue index 73be06bc..65994810 100644 --- a/src/views/HardwareStatus/Inventory/InventoryTableDimmSlot.vue +++ b/src/views/HardwareStatus/Inventory/InventoryTableDimmSlot.vue @@ -28,6 +28,7 @@ :filter="searchFilter" :empty-text="$t('global.table.emptyMessage')" :empty-filtered-text="$t('global.table.emptySearchMessage')" + :busy="isBusy" @filtered="onFiltered" > <!-- Expand chevron icon --> @@ -181,6 +182,7 @@ export default { ], data() { return { + isBusy: true, fields: [ { key: 'expandRow', @@ -228,6 +230,7 @@ export default { this.$store.dispatch('memory/getDimms').finally(() => { // Emit initial data fetch complete to parent component this.$root.$emit('hardware-status-dimm-slot-complete'); + this.isBusy = false; }); }, methods: { diff --git a/src/views/HardwareStatus/Inventory/InventoryTableFans.vue b/src/views/HardwareStatus/Inventory/InventoryTableFans.vue index ff568043..fe788c53 100644 --- a/src/views/HardwareStatus/Inventory/InventoryTableFans.vue +++ b/src/views/HardwareStatus/Inventory/InventoryTableFans.vue @@ -28,6 +28,7 @@ :filter="searchFilter" :empty-text="$t('global.table.emptyMessage')" :empty-filtered-text="$t('global.table.emptySearchMessage')" + :busy="isBusy" @filtered="onFiltered" > <!-- Expand chevron icon --> @@ -120,6 +121,7 @@ export default { ], data() { return { + isBusy: true, fields: [ { key: 'expandRow', @@ -171,6 +173,7 @@ export default { this.$store.dispatch('fan/getFanInfo').finally(() => { // Emit initial data fetch complete to parent component this.$root.$emit('hardware-status-fans-complete'); + this.isBusy = false; }); }, methods: { diff --git a/src/views/HardwareStatus/Inventory/InventoryTablePowerSupplies.vue b/src/views/HardwareStatus/Inventory/InventoryTablePowerSupplies.vue index ba0896bf..aed7871a 100644 --- a/src/views/HardwareStatus/Inventory/InventoryTablePowerSupplies.vue +++ b/src/views/HardwareStatus/Inventory/InventoryTablePowerSupplies.vue @@ -28,6 +28,7 @@ :filter="searchFilter" :empty-text="$t('global.table.emptyMessage')" :empty-filtered-text="$t('global.table.emptySearchMessage')" + :busy="isBusy" @filtered="onFiltered" > <!-- Expand chevron icon --> @@ -138,6 +139,7 @@ export default { ], data() { return { + isBusy: true, fields: [ { key: 'expandRow', @@ -189,6 +191,7 @@ export default { this.$store.dispatch('powerSupply/getAllPowerSupplies').finally(() => { // Emit initial data fetch complete to parent component this.$root.$emit('hardware-status-power-supplies-complete'); + this.isBusy = false; }); }, methods: { diff --git a/src/views/HardwareStatus/Inventory/InventoryTableProcessors.vue b/src/views/HardwareStatus/Inventory/InventoryTableProcessors.vue index fbe58374..7d5dd700 100644 --- a/src/views/HardwareStatus/Inventory/InventoryTableProcessors.vue +++ b/src/views/HardwareStatus/Inventory/InventoryTableProcessors.vue @@ -27,6 +27,7 @@ :filter="searchFilter" :empty-text="$t('global.table.emptyMessage')" :empty-filtered-text="$t('global.table.emptySearchMessage')" + :busy="isBusy" @filtered="onFiltered" > <!-- Expand button --> @@ -172,6 +173,7 @@ export default { ], data() { return { + isBusy: true, fields: [ { key: 'expandRow', @@ -224,6 +226,7 @@ export default { this.$store.dispatch('processors/getProcessorsInfo').finally(() => { // Emit initial data fetch complete to parent component this.$root.$emit('hardware-status-processors-complete'); + this.isBusy = false; }); }, methods: { diff --git a/src/views/HardwareStatus/Inventory/InventoryTableSystem.vue b/src/views/HardwareStatus/Inventory/InventoryTableSystem.vue index 93e65bbe..cf2cf020 100644 --- a/src/views/HardwareStatus/Inventory/InventoryTableSystem.vue +++ b/src/views/HardwareStatus/Inventory/InventoryTableSystem.vue @@ -7,6 +7,7 @@ :items="systems" :fields="fields" :empty-text="$t('global.table.emptyMessage')" + :busy="isBusy" > <!-- Expand chevron icon --> <template #cell(expandRow)="row"> @@ -162,6 +163,7 @@ export default { mixins: [BVToastMixin, TableRowExpandMixin, DataFormatterMixin], data() { return { + isBusy: true, fields: [ { key: 'expandRow', @@ -208,6 +210,7 @@ export default { this.$store.dispatch('system/getSystem').finally(() => { // Emit initial data fetch complete to parent component this.$root.$emit('hardware-status-system-complete'); + this.isBusy = false; }); }, methods: { diff --git a/src/views/HardwareStatus/Sensors/Sensors.vue b/src/views/HardwareStatus/Sensors/Sensors.vue index 15cecfff..6329d9d8 100644 --- a/src/views/HardwareStatus/Sensors/Sensors.vue +++ b/src/views/HardwareStatus/Sensors/Sensors.vue @@ -53,6 +53,7 @@ :filter="searchFilter" :empty-text="$t('global.table.emptyMessage')" :empty-filtered-text="$t('global.table.emptySearchMessage')" + :busy="isBusy" @filtered="onFiltered" @row-selected="onRowSelected($event, filteredSensors.length)" > @@ -146,6 +147,7 @@ export default { }, data() { return { + isBusy: true, fields: [ { key: 'checkbox', @@ -220,9 +222,10 @@ export default { }, created() { this.startLoader(); - this.$store - .dispatch('sensors/getAllSensors') - .finally(() => this.endLoader()); + this.$store.dispatch('sensors/getAllSensors').finally(() => { + this.endLoader(); + this.isBusy = false; + }); }, methods: { sortCompare(a, b, key) { |