mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-10-01 03:36:04 +08:00
hide usb device tab in v1.3.x (#236)
Signed-off-by: Andy Lee <andy.lee@suse.com>
This commit is contained in:
@@ -212,7 +212,10 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
},
|
||||||
|
usbPassthroughEnabled() {
|
||||||
|
return this.$store.getters['harvester-common/getFeatureEnabled']('usbPassthrough');
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
watch: {
|
watch: {
|
||||||
@@ -682,7 +685,7 @@ export default {
|
|||||||
</Tab>
|
</Tab>
|
||||||
|
|
||||||
<Tab
|
<Tab
|
||||||
v-if="enabledPCI"
|
v-if="enabledPCI && usbPassthroughEnabled"
|
||||||
:label="t('harvester.tab.usbDevices')"
|
:label="t('harvester.tab.usbDevices')"
|
||||||
name="usbDevices"
|
name="usbDevices"
|
||||||
:weight="-7"
|
:weight="-7"
|
||||||
|
|||||||
Reference in New Issue
Block a user