1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

Desktop: Enable TLS options for Joplin Server

This commit is contained in:
Laurent Cozic 2021-01-22 00:31:10 +00:00
parent 0c09202950
commit d4a6078392
2 changed files with 2 additions and 3 deletions

View File

@ -78,7 +78,6 @@ export default function Sidebar(props: Props) {
if (s1 === SettingSectionSource.Plugin && s2 === SettingSectionSource.Default) return +1; if (s1 === SettingSectionSource.Plugin && s2 === SettingSectionSource.Default) return +1;
return 0; return 0;
}); });
console.info('SORTED', output);
return output; return output;
}, [props.sections]); }, [props.sections]);

View File

@ -863,7 +863,7 @@ class Setting extends BaseModel {
section: 'sync', section: 'sync',
advanced: true, advanced: true,
show: (settings: any) => { show: (settings: any) => {
return [SyncTargetRegistry.nameToId('nextcloud'), SyncTargetRegistry.nameToId('webdav')].indexOf(settings['sync.target']) >= 0; return [SyncTargetRegistry.nameToId('nextcloud'), SyncTargetRegistry.nameToId('webdav'), SyncTargetRegistry.nameToId('joplinServer')].indexOf(settings['sync.target']) >= 0;
}, },
public: true, public: true,
appTypes: ['desktop', 'cli'], appTypes: ['desktop', 'cli'],
@ -876,7 +876,7 @@ class Setting extends BaseModel {
advanced: true, advanced: true,
section: 'sync', section: 'sync',
show: (settings: any) => { show: (settings: any) => {
return [SyncTargetRegistry.nameToId('nextcloud'), SyncTargetRegistry.nameToId('webdav')].indexOf(settings['sync.target']) >= 0; return [SyncTargetRegistry.nameToId('nextcloud'), SyncTargetRegistry.nameToId('webdav'), SyncTargetRegistry.nameToId('joplinServer')].indexOf(settings['sync.target']) >= 0;
}, },
public: true, public: true,
appTypes: ['desktop', 'cli'], appTypes: ['desktop', 'cli'],