mirror of
https://gitlab.com/ArkHost/HelixNotes.git
synced 2026-11-22 11:04:56 +01:00
Add WebDAV sync provider (manual + auto-sync, title-bar button)
This commit is contained in:
1 parent
aeafd55491
commit
eafd2b0a24
3 files changed
+23
-16
No files matched your search
@@ -316,6 +316,18 @@
|
||||
|
||||
async function saveSyncSettings() {
|
||||
await setSyncSettings(syncProvider, syncUrl || null, syncUsername || null, syncPassword || null, syncOnOpen, syncOnChange, syncIntervalMinutes);
|
||||
// Reflect into the global store so the top-bar button visibility and the auto-sync
|
||||
// triggers update live, without needing an app restart.
|
||||
if ($appConfig) $appConfig = {
|
||||
...$appConfig,
|
||||
sync_provider: syncProvider,
|
||||
webdav_url: syncUrl || null,
|
||||
webdav_username: syncUsername || null,
|
||||
webdav_password: syncPassword || null,
|
||||
sync_on_open: syncOnOpen,
|
||||
sync_on_change: syncOnChange,
|
||||
sync_interval_minutes: syncIntervalMinutes,
|
||||
};
|
||||
}
|
||||
|
||||
async function handleTestSync() {
|
||||
|
||||
Reference in new issue
Block a user