Fix typos
This commit is contained in:
parent
eb5c109220
commit
e1513e2ccf
|
@ -371,7 +371,7 @@ async function processSelectedDevices() {
|
||||||
try {
|
try {
|
||||||
const devicesIDs = action.devices.filter(dev => !action.lot.devices.includes(dev.id)).map(dev => dev.id)
|
const devicesIDs = action.devices.filter(dev => !action.lot.devices.includes(dev.id)).map(dev => dev.id)
|
||||||
await Api.devices_add(action.lot.id, devicesIDs);
|
await Api.devices_add(action.lot.id, devicesIDs);
|
||||||
this.notifyUser("Devices sucefully aded to selected lot/s", "", false);
|
this.notifyUser("Devices sucefully added to selected lot/s", "", false);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.notifyUser("Failed to add devices to selected lot/s", error.responseJSON.message, true);
|
this.notifyUser("Failed to add devices to selected lot/s", error.responseJSON.message, true);
|
||||||
}
|
}
|
||||||
|
@ -381,7 +381,7 @@ async function processSelectedDevices() {
|
||||||
await Api.devices_remove(action.lot.id, devicesIDs);
|
await Api.devices_remove(action.lot.id, devicesIDs);
|
||||||
this.notifyUser("Devices sucefully removed from selected lot/s", "", false);
|
this.notifyUser("Devices sucefully removed from selected lot/s", "", false);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.notifyUser("Fail to remove devices from selected lot/s", error.responseJSON.message, true);
|
this.notifyUser("Failed to remove devices from selected lot/s", error.responseJSON.message, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
requestCount += 1
|
requestCount += 1
|
||||||
|
|
Reference in New Issue