From c978553bdaf95a5f5120456bbb5e56cb53120d8f Mon Sep 17 00:00:00 2001 From: Maksim Zakharov Date: Thu, 18 Aug 2022 10:24:36 +0300 Subject: add requests for pci page --- src/views/_sila/PciDevices/PciDevices.vue | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) (limited to 'src/views/_sila/PciDevices') diff --git a/src/views/_sila/PciDevices/PciDevices.vue b/src/views/_sila/PciDevices/PciDevices.vue index 76453a3a..77f40b66 100644 --- a/src/views/_sila/PciDevices/PciDevices.vue +++ b/src/views/_sila/PciDevices/PciDevices.vue @@ -51,6 +51,16 @@ export default { label: this.$t('pagePci.table.manufacturer'), formatter: this.dataFormatter, }, + { + key: 'classCode', + label: this.$t('pagePci.table.classCode'), + formatter: this.dataFormatter, + }, + { + key: 'deviceClass', + label: this.$t('pagePci.table.deviceClass'), + formatter: this.dataFormatter, + }, ], }; }, @@ -63,10 +73,15 @@ export default { created() { this.startLoader(); - this.$store.dispatch('pci/getDevices').finally(() => { - this.endLoader(); - this.isBusy = false; - }); + this.$store + .dispatch('pci/getDevices') + .then(() => { + this.$store.dispatch('pci/getFunctionDevices'); + }) + .finally(() => { + this.endLoader(); + this.isBusy = false; + }); }, }; -- cgit v1.2.3