mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-03-21 20:51:45 +00:00
refactor: update with conditionally rendering
Signed-off-by: Andy Lee <andy.lee@suse.com>
This commit is contained in:
parent
2b669ba4d5
commit
634c065b24
@ -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"
|
||||
/>
|
||||
<FilterBySriov
|
||||
v-if="vGPUAsPCIDeviceEnabled"
|
||||
ref="filterByParentSRIOVGPU"
|
||||
:parent-sriov-options="parentSriovGPUOptions"
|
||||
:parent-sriov-label="parentSriovGPULabel"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user