mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-10-01 03:36:04 +08:00
Fix lint errors
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
This commit is contained in:
+2
-4
@@ -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,
|
||||
},
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user