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,6 +1,6 @@
import ScriptContext from "./script_context.js";
import server from "./server.js";
import infoService from "./info.js";
import toastService from "./toast.js";
async function getAndExecuteBundle(noteId, originEntity = null) {
const bundle = await server.get('script/bundle/' + noteId);
@@ -17,7 +17,7 @@ async function executeBundle(bundle, originEntity, tabContext, $container) {
}.call(apiContext));
}
catch (e) {
infoService.showAndLogError(`Execution of ${bundle.noteId} failed with error: ${e.message}`);
toastService.showAndLogError(`Execution of ${bundle.noteId} failed with error: ${e.message}`);
}
}