1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-07-16 00:14:34 +02:00

Desktop: Add Sync Wizard dialog

This commit is contained in:
Laurent Cozic
2021-08-16 15:20:14 +01:00
parent 5c50ee9b14
commit fe4900d254
32 changed files with 701 additions and 32 deletions

View File

@ -3,7 +3,7 @@ import { _, supportedLocalesToLanguages, defaultLocale } from '../locale';
import eventManager from '../eventManager';
import BaseModel from '../BaseModel';
import Database from '../database';
const SyncTargetRegistry = require('../SyncTargetRegistry.js');
import SyncTargetRegistry from '../SyncTargetRegistry';
import time from '../time';
import FileHandler, { SettingValues } from './settings/FileHandler';
const { sprintf } = require('sprintf-js');
@ -55,6 +55,7 @@ export interface SettingItem {
needRestart?: boolean;
autoSave?: boolean;
storage?: SettingStorage;
hideLabel?: boolean;
}
interface SettingItems {
@ -306,6 +307,17 @@ class Setting extends BaseModel {
appTypes: [AppType.Desktop],
storage: SettingStorage.File,
},
'sync.openSyncWizard': {
value: null,
type: SettingItemType.Button,
public: true,
appTypes: [AppType.Desktop],
label: () => _('Open Sync Wizard...'),
hideLabel: true,
section: 'sync',
},
'sync.target': {
value: SyncTargetRegistry.nameToId('dropbox'),
type: SettingItemType.Int,