incremental push / pull only modes
This commit is contained in:
@@ -18,6 +18,7 @@ import {
|
||||
EmptyFolderCleanType,
|
||||
SUPPORTED_SERVICES_TYPE,
|
||||
SUPPORTED_SERVICES_TYPE_WITH_REMOTE_BASE_DIR,
|
||||
SyncDirectionType,
|
||||
VALID_REQURL,
|
||||
WebdavAuthType,
|
||||
WebdavDepthType,
|
||||
@@ -1991,6 +1992,31 @@ export class RemotelySaveSettingTab extends PluginSettingTab {
|
||||
});
|
||||
});
|
||||
|
||||
new Setting(advDiv)
|
||||
.setName(t("setting_syncdirection"))
|
||||
.setDesc(t("setting_syncdirection_desc"))
|
||||
.addDropdown((dropdown) => {
|
||||
dropdown.addOption(
|
||||
"bidirectional",
|
||||
t("setting_syncdirection_bidirectional_desc")
|
||||
);
|
||||
dropdown.addOption(
|
||||
"incremental_push_only",
|
||||
t("setting_syncdirection_incremental_push_only_desc")
|
||||
);
|
||||
dropdown.addOption(
|
||||
"incremental_pull_only",
|
||||
t("setting_syncdirection_incremental_pull_only_desc")
|
||||
);
|
||||
|
||||
dropdown
|
||||
.setValue(this.plugin.settings.syncDirection ?? "bidirectional")
|
||||
.onChange(async (val) => {
|
||||
this.plugin.settings.syncDirection = val as SyncDirectionType;
|
||||
await this.plugin.saveSettings();
|
||||
});
|
||||
});
|
||||
|
||||
//////////////////////////////////////////////////
|
||||
// below for import and export functions
|
||||
//////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user