mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 18:36:30 +01:00 
			
		
		
		
	#98, sync to server now works as well + a lot of related changes
This commit is contained in:
		| @@ -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 | ||||
|     }; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user