From 8a229d56d16d5d5cdbfa646b8f6728edff3b458b Mon Sep 17 00:00:00 2001 From: Francesco Torchia Date: Sun, 8 Sep 2024 18:05:03 +0200 Subject: [PATCH] Split passthrough to usb and pci components Signed-off-by: Francesco Torchia --- ...ssthrough.vue => EnablePciPassthrough.vue} | 2 +- pkg/harvester/dialog/EnableUSBPassthrough.vue | 114 ++++++++++++++++++ .../devices.harvesterhci.io.pcidevice.js | 2 +- .../devices.harvesterhci.io.usbdevice.js | 2 +- 4 files changed, 117 insertions(+), 3 deletions(-) rename pkg/harvester/dialog/{EnablePassthrough.vue => EnablePciPassthrough.vue} (98%) create mode 100644 pkg/harvester/dialog/EnableUSBPassthrough.vue diff --git a/pkg/harvester/dialog/EnablePassthrough.vue b/pkg/harvester/dialog/EnablePciPassthrough.vue similarity index 98% rename from pkg/harvester/dialog/EnablePassthrough.vue rename to pkg/harvester/dialog/EnablePciPassthrough.vue index 35516dee..b57fee25 100644 --- a/pkg/harvester/dialog/EnablePassthrough.vue +++ b/pkg/harvester/dialog/EnablePciPassthrough.vue @@ -6,7 +6,7 @@ import { escapeHtml } from '@shell/utils/string'; import { HCI } from '../types'; export default { - name: 'HarvesterEnablePassthrough', + name: 'HarvesterEnablePciPassthrough', emits: ['close'], diff --git a/pkg/harvester/dialog/EnableUSBPassthrough.vue b/pkg/harvester/dialog/EnableUSBPassthrough.vue new file mode 100644 index 00000000..793e09c1 --- /dev/null +++ b/pkg/harvester/dialog/EnableUSBPassthrough.vue @@ -0,0 +1,114 @@ + + + + + diff --git a/pkg/harvester/models/devices.harvesterhci.io.pcidevice.js b/pkg/harvester/models/devices.harvesterhci.io.pcidevice.js index 2cbbac84..e337b92e 100644 --- a/pkg/harvester/models/devices.harvesterhci.io.pcidevice.js +++ b/pkg/harvester/models/devices.harvesterhci.io.pcidevice.js @@ -135,7 +135,7 @@ export default class PCIDevice extends SteveModel { enablePassthroughBulk(resources = this) { this.$dispatch('promptModal', { resources, - component: 'EnablePassthrough' + component: 'EnablePciPassthrough' }); } diff --git a/pkg/harvester/models/devices.harvesterhci.io.usbdevice.js b/pkg/harvester/models/devices.harvesterhci.io.usbdevice.js index 38d18164..88b7c054 100644 --- a/pkg/harvester/models/devices.harvesterhci.io.usbdevice.js +++ b/pkg/harvester/models/devices.harvesterhci.io.usbdevice.js @@ -135,7 +135,7 @@ export default class USBDevice extends SteveModel { enablePassthroughBulk(resources = this) { this.$dispatch('promptModal', { resources, - component: 'EnablePassthrough' + component: 'EnableUSBPassthrough' }); }