Pure helpers backing the "Setup cloud sync" dialog.
Methods
# inner buildCloudSyncSettingsUpdate(current, form) → {Object}
Compute the settings changes resulting from saving the cloud sync dialog.
Parameters:
| Name | Type | Description |
|---|---|---|
current |
Object
|
effective current values: { cloudSyncProvider, nextcloudUrl, nextcloudUsername } |
form |
Object
|
{ provider, nextcloud: {url, username, password}, onlyWifi, enableBackgroundSync, syncAfterChanges } |
Object
# inner validateNextcloudConfig() → {Object}
Validate the Nextcloud form fields.
errors/warnings are i18n keys
Object