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

@ -58,8 +58,8 @@ export default {
}] }]
}, },
spec: { spec: {
pciAddress: actionResource.status.pciAddress, pciAddress: actionResource.status.pciAddress,
nodeName: actionResource.status.nodeName, nodeName: actionResource.status.nodeName,
userName userName
} }
} ); } );

View File

@ -56,7 +56,7 @@ export default {
const oldFormatDevices = []; const oldFormatDevices = [];
const vmDevices = this.value?.domain?.devices?.hostDevices || []; 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 }) => { vmDevices.forEach(({ name, deviceName }) => {
const checkName = (deviceName || '').split('/')?.[1]; const checkName = (deviceName || '').split('/')?.[1];
@ -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

@ -78,8 +78,8 @@ export default {
return { return {
headers, headers,
rows: [], rows: [],
filterRows: [] filterRows: []
}; };
}, },
@ -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,12 +50,12 @@ 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() {
return { return {
deviceSchema: this.$store.getters['harvester/schemaFor'](HCI.USB_DEVICE), deviceSchema: this.$store.getters['harvester/schemaFor'](HCI.USB_DEVICE),
deviceHeaders: [ deviceHeaders: [
{ ...STATE }, { ...STATE },
SIMPLE_NAME, SIMPLE_NAME,
@ -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));
} }
} }
}; };

View File

@ -42,7 +42,7 @@ export default {
hasPCIAddon: false, hasPCIAddon: false,
schema: null, schema: null,
toUSBAddon: `${ HCI.ADD_ONS }/harvester-system/${ ADD_ONS.USB_DEVICE_CONTROLLER }?mode=edit`, toUSBAddon: `${ HCI.ADD_ONS }/harvester-system/${ ADD_ONS.USB_DEVICE_CONTROLLER }?mode=edit`,
headers: [ headers: [
{ ...STATE }, { ...STATE },
SIMPLE_NAME, SIMPLE_NAME,
], ],