mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-01-05 20:39:49 -06:00
sync check failure is now shown as error message in frontend
This commit is contained in:
@@ -42,6 +42,9 @@ const messaging = (function() {
|
||||
|
||||
changesToPushCountEl.html(message.changesToPushCount);
|
||||
}
|
||||
else if (message.type === 'sync-hash-check-failed') {
|
||||
showError("Sync check failed!", 60000);
|
||||
}
|
||||
}
|
||||
|
||||
function connectWebSocket() {
|
||||
|
||||
@@ -17,7 +17,7 @@ function showMessage(message) {
|
||||
});
|
||||
}
|
||||
|
||||
function showError(message) {
|
||||
function showError(message, delay = 10000) {
|
||||
console.log("error: ", message);
|
||||
|
||||
$.notify({
|
||||
@@ -26,7 +26,7 @@ function showError(message) {
|
||||
},{
|
||||
// settings
|
||||
type: 'danger',
|
||||
delay: 10000
|
||||
delay: delay
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user