mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 11:56:01 +01:00
#98, better error reporting for sync setup
This commit is contained in:
@@ -105,9 +105,11 @@ function SetupModel() {
|
||||
this.step('sync-in-progress');
|
||||
|
||||
setInterval(checkOutstandingSyncs, 1000);
|
||||
|
||||
hideAlert();
|
||||
}
|
||||
else {
|
||||
showAlert('Sync setup failed: ', resp.error);
|
||||
showAlert('Sync setup failed: ' + resp.error);
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -130,6 +132,10 @@ function showAlert(message) {
|
||||
$("#alert").show();
|
||||
}
|
||||
|
||||
function hideAlert() {
|
||||
$("#alert").hide();
|
||||
}
|
||||
|
||||
ko.applyBindings(new SetupModel(), document.getElementById('setup-dialog'));
|
||||
|
||||
$("#setup-dialog").show();
|
||||
Reference in New Issue
Block a user