mirror of
https://github.com/zadam/trilium.git
synced 2025-11-08 06:15:48 +01:00
rename info service to toast service
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user