Hi guys, I have a such method:
importDeviceTmpl(connectionId, deviceId, prefSuff).then(results => {
webix.$$("devicePopup").close();
this.reload();
});
I want to get response message from network, the response message includes some errors to show to users. The “results” does not include the message.
My function in backend sends the response message, I can see it in network messages in Chrome. How can get the message?
For example, here, I used it in upload method and it worked.
onUploadComplete: (response) => {
if (!response.success) {
this.showError("error", response.message);
} else {
this.showError("info", response.message);
this.reloadDevices();
}
}