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";
import treeService from "./tree.js";
const $outstandingSyncsCount = $("#outstanding-syncs-count");
@@ -65,10 +65,10 @@ function handleMessage(event) {
$outstandingSyncsCount.html(message.outstandingSyncs);
}
else if (message.type === 'sync-hash-check-failed') {
infoService.showError("Sync check failed!", 60000);
toastService.showError("Sync check failed!", 60000);
}
else if (message.type === 'consistency-checks-failed') {
infoService.showError("Consistency checks failed! See logs for details.", 50 * 60000);
toastService.showError("Consistency checks failed! See logs for details.", 50 * 60000);
}
}