mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-03-22 05:01: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() {
|
parentSriovGPULabel() {
|
||||||
return HCI_ANNOTATIONS.PARENT_SRIOV_GPU;
|
return HCI_ANNOTATIONS.PARENT_SRIOV_GPU;
|
||||||
},
|
},
|
||||||
|
vGPUAsPCIDeviceEnabled() {
|
||||||
|
return this.$store.getters['harvester-common/getFeatureEnabled']('vGPUAsPCIDevice');
|
||||||
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
enableGroup(rows = []) {
|
enableGroup(rows = []) {
|
||||||
@ -218,6 +221,7 @@ export default {
|
|||||||
@change-rows="changeRows"
|
@change-rows="changeRows"
|
||||||
/>
|
/>
|
||||||
<FilterBySriov
|
<FilterBySriov
|
||||||
|
v-if="vGPUAsPCIDeviceEnabled"
|
||||||
ref="filterByParentSRIOVGPU"
|
ref="filterByParentSRIOVGPU"
|
||||||
:parent-sriov-options="parentSriovGPUOptions"
|
:parent-sriov-options="parentSriovGPUOptions"
|
||||||
:parent-sriov-label="parentSriovGPULabel"
|
:parent-sriov-label="parentSriovGPULabel"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user