#98, better error reporting for sync setup

This commit is contained in:
azivner
2018-07-25 22:54:37 +02:00
parent d39cdbfada
commit 02dc7b199b
7 changed files with 33 additions and 22 deletions

View File

@@ -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();