diff --git a/pkg/harvester/dialog/EnableUSBPassthrough.vue b/pkg/harvester/dialog/EnableUSBPassthrough.vue index 793e09c1..305641e6 100644 --- a/pkg/harvester/dialog/EnableUSBPassthrough.vue +++ b/pkg/harvester/dialog/EnableUSBPassthrough.vue @@ -58,8 +58,8 @@ export default { }] }, spec: { - pciAddress: actionResource.status.pciAddress, - nodeName: actionResource.status.nodeName, + pciAddress: actionResource.status.pciAddress, + nodeName: actionResource.status.nodeName, userName } } ); diff --git a/pkg/harvester/edit/kubevirt.io.virtualmachine/VirtualMachinePciDevices/index.vue b/pkg/harvester/edit/kubevirt.io.virtualmachine/VirtualMachinePciDevices/index.vue index c8106178..4e89ceeb 100644 --- a/pkg/harvester/edit/kubevirt.io.virtualmachine/VirtualMachinePciDevices/index.vue +++ b/pkg/harvester/edit/kubevirt.io.virtualmachine/VirtualMachinePciDevices/index.vue @@ -56,7 +56,7 @@ export default { const oldFormatDevices = []; const vmDevices = this.value?.domain?.devices?.hostDevices || []; - const otherDevices = this.otherDevices(vmDevices).map(({name}) => name); + const otherDevices = this.otherDevices(vmDevices).map(({ name }) => name); vmDevices.forEach(({ name, deviceName }) => { const checkName = (deviceName || '').split('/')?.[1]; @@ -196,7 +196,7 @@ export default { methods: { otherDevices(vmDevices) { - return vmDevices.filter((device) => !this.pciDevices.find((pci) => device.name === pci.name)); + return vmDevices.filter(device => !this.pciDevices.find(pci => device.name === pci.name)); }, nodeNameFromUid(uid) { diff --git a/pkg/harvester/edit/kubevirt.io.virtualmachine/VirtualMachineUSBDevices/DeviceList.vue b/pkg/harvester/edit/kubevirt.io.virtualmachine/VirtualMachineUSBDevices/DeviceList.vue index 01df9f3e..a0d124c5 100644 --- a/pkg/harvester/edit/kubevirt.io.virtualmachine/VirtualMachineUSBDevices/DeviceList.vue +++ b/pkg/harvester/edit/kubevirt.io.virtualmachine/VirtualMachineUSBDevices/DeviceList.vue @@ -78,8 +78,8 @@ export default { return { headers, - rows: [], - filterRows: [] + rows: [], + filterRows: [] }; }, @@ -88,8 +88,6 @@ export default { handler(v) { this.rows = v; this.filterRows = this.rows; - - console.log(this.filterRows) }, immediate: true, }, diff --git a/pkg/harvester/edit/kubevirt.io.virtualmachine/VirtualMachineUSBDevices/index.vue b/pkg/harvester/edit/kubevirt.io.virtualmachine/VirtualMachineUSBDevices/index.vue index a3f4447b..8e27fe6d 100644 --- a/pkg/harvester/edit/kubevirt.io.virtualmachine/VirtualMachineUSBDevices/index.vue +++ b/pkg/harvester/edit/kubevirt.io.virtualmachine/VirtualMachineUSBDevices/index.vue @@ -50,12 +50,12 @@ export default { this.selectedDevices = (this.value?.domain?.devices?.hostDevices || []) .map(({ name }) => name) - .filter((name) => this.enabledDevices.find(device => device?.metadata?.name === name)); + .filter(name => this.enabledDevices.find(device => device?.metadata?.name === name)); }, data() { return { - deviceSchema: this.$store.getters['harvester/schemaFor'](HCI.USB_DEVICE), + deviceSchema: this.$store.getters['harvester/schemaFor'](HCI.USB_DEVICE), deviceHeaders: [ { ...STATE }, SIMPLE_NAME, @@ -165,7 +165,7 @@ export default { methods: { otherDevices(vmDevices) { - return vmDevices.filter((device) => !this.devices.find((usb) => device.name === usb.name)); + return vmDevices.filter(device => !this.devices.find(usb => device.name === usb.name)); } } }; diff --git a/pkg/harvester/list/devices.harvesterhci.io.usbdevice.vue b/pkg/harvester/list/devices.harvesterhci.io.usbdevice.vue index 762071ea..52f31f18 100644 --- a/pkg/harvester/list/devices.harvesterhci.io.usbdevice.vue +++ b/pkg/harvester/list/devices.harvesterhci.io.usbdevice.vue @@ -42,7 +42,7 @@ export default { hasPCIAddon: false, schema: null, toUSBAddon: `${ HCI.ADD_ONS }/harvester-system/${ ADD_ONS.USB_DEVICE_CONTROLLER }?mode=edit`, - headers: [ + headers: [ { ...STATE }, SIMPLE_NAME, ],