diff options
author | Vitalii Lysak <v.lysak@dunice.net> | 2022-08-24 16:31:46 +0300 |
---|---|---|
committer | Vitalii Lysak <v.lysak@dunice.net> | 2022-08-24 16:31:46 +0300 |
commit | dc974638f3ea285f8da00a1a084d08ce3ede8949 (patch) | |
tree | 8ac7de9a1f3e11a296b6cf068c57504453622ace | |
parent | abd7265f76c5d8f9f8e9512a5e17ed8b58e288a2 (diff) | |
parent | 155fcf7d6f5498604674e2d6bb77e734468a236b (diff) | |
download | webui-vue-dc974638f3ea285f8da00a1a084d08ce3ede8949.tar.xz |
Merge branch 'sila' of git.sila.ru:pub/openbmc/webui-vue into sila
-rw-r--r-- | src/views/_sila/Overview/Inventory/InventoryPciDevices.vue | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/src/views/_sila/Overview/Inventory/InventoryPciDevices.vue b/src/views/_sila/Overview/Inventory/InventoryPciDevices.vue index 91e131de..81ff0000 100644 --- a/src/views/_sila/Overview/Inventory/InventoryPciDevices.vue +++ b/src/views/_sila/Overview/Inventory/InventoryPciDevices.vue @@ -11,7 +11,10 @@ > <template #cell(expandRow)="row"> <b-button - v-if="items[row.index].DeviceType !== 'SingleFunction'" + v-if=" + items[row.index].DeviceType !== 'SingleFunction' && + items[row.index].Functions + " variant="link" :title="expandRowLabel" class="btn-icon-only" @@ -27,7 +30,7 @@ > <span v-else> {{ - items[data.index].Functions[0].DeviceName + items[data.index].Functions ? items[data.index].Functions[0].DeviceName : '--' }}</span @@ -41,7 +44,13 @@ <span v-if="items[data.index].DeviceType === 'SingleFunction'"> {{ data.value }}</span > - <span v-else> {{ items[data.index].Functions[0].deviceClass }}</span> + <span v-else> + {{ + items[data.index].Functions + ? items[data.index].Functions[0].deviceClass + : '--' + }}</span + > </template> <template #row-details="data"> <b-container fluid> @@ -49,13 +58,19 @@ <b-col xs="6"> <dl> <dt>{{ $t('pagePci.table.name') }}:</dt> - <dd>{{ dataFormatter(item.DeviceName) }}</dd> + <dd v-if="item.DeviceName"> + {{ dataFormatter(item.DeviceName) }} + </dd> + <dd v-else>{{ '--' }}</dd> </dl> </b-col> <b-col xs="6"> <dl> <dt>{{ $t('pagePci.table.type') }}:</dt> - <dd>{{ dataFormatter(item.deviceClass) }}</dd> + <dd v-if="item.deviceClass"> + {{ dataFormatter(item.deviceClass) }} + </dd> + <dd v-else>{{ '--' }}</dd> </dl> </b-col> </b-row> |