diff options
Diffstat (limited to 'src/views/_sila/PciDevices/PciDevices.vue')
-rw-r--r-- | src/views/_sila/PciDevices/PciDevices.vue | 87 |
1 files changed, 0 insertions, 87 deletions
diff --git a/src/views/_sila/PciDevices/PciDevices.vue b/src/views/_sila/PciDevices/PciDevices.vue deleted file mode 100644 index 77f40b66..00000000 --- a/src/views/_sila/PciDevices/PciDevices.vue +++ /dev/null @@ -1,87 +0,0 @@ -<template> - <b-container fluid="xl"> - <page-title /> - <page-section :section-title="$t('pagePci.title')"> - <b-table - responsive="md" - show-empty - hover - :items="items" - :fields="fields" - :empty-text="$t('global.table.emptyMessage')" - :busy="isBusy" - > - </b-table> - </page-section> - </b-container> -</template> - -<script> -import PageTitle from '@/components/_sila/Global/PageTitle'; -import PageSection from '@/components/_sila/Global/PageSection'; - -import DataFormatterMixin from '@/components/_sila/Mixins/DataFormatterMixin'; -import LoadingBarMixin from '@/components/_sila/Mixins/LoadingBarMixin'; - -export default { - components: { PageTitle, PageSection }, - mixins: [DataFormatterMixin, LoadingBarMixin], - data() { - return { - isBusy: true, - fields: [ - { - key: 'id', - label: this.$t('pagePci.table.id'), - formatter: this.dataFormatter, - tdClass: 'text-nowrap', - }, - { - key: 'name', - label: this.$t('pagePci.table.name'), - formatter: this.dataFormatter, - }, - { - key: 'type', - label: this.$t('pagePci.table.type'), - formatter: this.dataFormatter, - }, - { - key: 'manufacturer', - 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, - }, - ], - }; - }, - - computed: { - items() { - return this.$store.getters['pci/pciDevices']; - }, - }, - - created() { - this.startLoader(); - this.$store - .dispatch('pci/getDevices') - .then(() => { - this.$store.dispatch('pci/getFunctionDevices'); - }) - .finally(() => { - this.endLoader(); - this.isBusy = false; - }); - }, -}; -</script> |