#98, sync to server now works as well + a lot of related changes

This commit is contained in:
azivner
2018-07-24 20:35:03 +02:00
parent 013714cb5c
commit 37ab7b4641
19 changed files with 153 additions and 65 deletions

View File

@@ -193,6 +193,7 @@ addTabHandler((function() {
const $syncServerTimeout = $("#sync-server-timeout");
const $syncProxy = $("#sync-proxy");
const $testSyncButton = $("#test-sync-button");
const $syncToServerButton = $("#sync-to-server-button");
function optionsLoaded(options) {
$syncServerHost.val(options['syncServerHost']);
@@ -221,6 +222,12 @@ addTabHandler((function() {
}
});
$syncToServerButton.click(async () => {
await server.post("sync/sync-to-server");
infoService.showMessage("Sync has been established to the server instance. It will take some time to finish.");
});
return {
optionsLoaded
};