rename info service to toast service

This commit is contained in:
zadam
2019-10-20 10:00:18 +02:00
parent 1903c59163
commit 78f5b7b288
26 changed files with 92 additions and 92 deletions

View File

@@ -1,5 +1,5 @@
import utils from './utils.js';
import infoService from "./info.js";
import toastService from "./toast.js";
const REQUEST_LOGGING_ENABLED = false;
@@ -87,8 +87,8 @@ async function ajax(url, method, data) {
return await $.ajax(options).catch(e => {
const message = "Error when calling " + method + " " + url + ": " + e.status + " - " + e.statusText;
infoService.showError(message);
infoService.throwError(message);
toastService.showError(message);
toastService.throwError(message);
});
}