1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-23 22:36:32 +02:00

All: Added "None" sync target to allow disabling synchronisation

This commit is contained in:
Laurent Cozic
2021-08-16 16:18:32 +01:00
parent fe4900d254
commit f5f05e6cc5
10 changed files with 165 additions and 20 deletions

View File

@@ -0,0 +1,30 @@
import { _ } from './locale.js';
import BaseSyncTarget from './BaseSyncTarget';
import { FileApi } from './file-api';
export default class SyncTargetNone extends BaseSyncTarget {
public static id() {
return 0;
}
public static targetName() {
return 'none';
}
public static label() {
return _('(None)');
}
public async fileApi(): Promise<FileApi> {
return null;
}
protected async initFileApi() {
}
protected async initSynchronizer() {
return null as any;
}
}