Fix lint errors

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
This commit is contained in:
Francesco Torchia 2024-09-08 18:09:59 +02:00
parent 7c04b1417a
commit fd76f84ff0
No known key found for this signature in database
GPG Key ID: E6D011B7415D4393
5 changed files with 10 additions and 12 deletions

View File

@ -196,7 +196,7 @@ export default {
methods: { methods: {
otherDevices(vmDevices) { 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) { nodeNameFromUid(uid) {

View File

@ -88,8 +88,6 @@ export default {
handler(v) { handler(v) {
this.rows = v; this.rows = v;
this.filterRows = this.rows; this.filterRows = this.rows;
console.log(this.filterRows)
}, },
immediate: true, immediate: true,
}, },

View File

@ -50,7 +50,7 @@ export default {
this.selectedDevices = (this.value?.domain?.devices?.hostDevices || []) this.selectedDevices = (this.value?.domain?.devices?.hostDevices || [])
.map(({ name }) => name) .map(({ name }) => name)
.filter((name) => this.enabledDevices.find(device => device?.metadata?.name === name)); .filter(name => this.enabledDevices.find(device => device?.metadata?.name === name));
}, },
data() { data() {
@ -165,7 +165,7 @@ export default {
methods: { methods: {
otherDevices(vmDevices) { 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));
} }
} }
}; };