Module

cloudSyncConfigHelper

Pure helpers backing the "Setup cloud sync" dialog.

View Source frontend/controllers/cloud_sync/cloud_sync_config_helper.js, line 19

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 }

View Source frontend/controllers/cloud_sync/cloud_sync_config_helper.js, line 92

Object

# inner validateNextcloudConfig() → {Object}

Validate the Nextcloud form fields.

View Source frontend/controllers/cloud_sync/cloud_sync_config_helper.js, line 51

errors/warnings are i18n keys

Object