1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-12 22:57:38 +02:00

Refactored handling of multiple sync targets

This commit is contained in:
Laurent Cozic
2017-07-24 18:01:40 +00:00
parent 04cd9a1e7b
commit 0f95e97d19
18 changed files with 630 additions and 581 deletions

View File

@ -166,7 +166,11 @@ Setting.defaults_ = {
'activeFolderId': { value: '', type: 'string', public: false },
'sync.onedrive.auth': { value: '', type: 'string', public: false },
'sync.filesystem.path': { value: '', type: 'string', public: true, appTypes: ['cli'] },
'sync.target': { value: 'onedrive', type: 'string', public: true, label: () => _('Synchronisation target') },
'sync.target': { value: 'onedrive', type: 'enum', public: true, label: () => _('Synchronisation target'), options: () => ({
1: 'Memory',
2: _('File system'),
3: _('OneDrive'),
})},
'sync.context': { value: '', type: 'string', public: false },
'editor': { value: '', type: 'string', public: true, appTypes: ['cli'] },
'locale': { value: 'en_GB', type: 'string', public: true },