From 634c065b2444d64a0c5e2329c4a05e13fd3a021a Mon Sep 17 00:00:00 2001 From: Andy Lee Date: Tue, 10 Mar 2026 13:22:49 +0800 Subject: [PATCH] refactor: update with conditionally rendering Signed-off-by: Andy Lee --- .../VirtualMachinePciDevices/DeviceList.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/harvester/edit/kubevirt.io.virtualmachine/VirtualMachinePciDevices/DeviceList.vue b/pkg/harvester/edit/kubevirt.io.virtualmachine/VirtualMachinePciDevices/DeviceList.vue index 293d51dc..9ae59260 100644 --- a/pkg/harvester/edit/kubevirt.io.virtualmachine/VirtualMachinePciDevices/DeviceList.vue +++ b/pkg/harvester/edit/kubevirt.io.virtualmachine/VirtualMachinePciDevices/DeviceList.vue @@ -129,6 +129,9 @@ export default { parentSriovGPULabel() { return HCI_ANNOTATIONS.PARENT_SRIOV_GPU; }, + vGPUAsPCIDeviceEnabled() { + return this.$store.getters['harvester-common/getFeatureEnabled']('vGPUAsPCIDevice'); + }, }, methods: { enableGroup(rows = []) { @@ -218,6 +221,7 @@ export default { @change-rows="changeRows" />