Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
  • Loading branch information
torchiaf committed Sep 9, 2024
1 parent 8b138de commit b6c91c5
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 12 deletions.
4 changes: 2 additions & 2 deletions pkg/harvester/dialog/EnableUSBPassthrough.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ export default {
}]
},
spec: {
pciAddress: actionResource.status.pciAddress,
nodeName: actionResource.status.nodeName,
pciAddress: actionResource.status.pciAddress,
nodeName: actionResource.status.nodeName,
userName
}
} );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,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];
Expand Down Expand Up @@ -194,7 +194,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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ export default {
return {
headers,
rows: [],
filterRows: []
rows: [],
filterRows: []
};
},
Expand All @@ -88,8 +88,6 @@ export default {
handler(v) {
this.rows = v;
this.filterRows = this.rows;
console.log(this.filterRows)
},
immediate: true,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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));
}
}
};
Expand Down
2 changes: 1 addition & 1 deletion pkg/harvester/list/devices.harvesterhci.io.usbdevice.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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,
],
Expand Down

0 comments on commit b6c91c5

Please sign in to comment.