split export
This commit is contained in:
+20
-2
@@ -2317,15 +2317,21 @@ export class RemotelySaveSettingTab extends PluginSettingTab {
|
||||
importExportDivSetting1.settingEl.addClass("setting-need-wrapping");
|
||||
importExportDivSetting1
|
||||
.addButton(async (button) => {
|
||||
button.setButtonText(t("settings_export_all_but_oauth2_button"));
|
||||
button.setButtonText(t("settings_export_basic_and_advanced_button"));
|
||||
button.onClick(async () => {
|
||||
new ExportSettingsQrCodeModal(
|
||||
this.app,
|
||||
this.plugin,
|
||||
"all_but_oauth2"
|
||||
"basic_and_advanced"
|
||||
).open();
|
||||
});
|
||||
})
|
||||
.addButton(async (button) => {
|
||||
button.setButtonText(t("settings_export_s3_button"));
|
||||
button.onClick(async () => {
|
||||
new ExportSettingsQrCodeModal(this.app, this.plugin, "s3").open();
|
||||
});
|
||||
})
|
||||
.addButton(async (button) => {
|
||||
button.setButtonText(t("settings_export_dropbox_button"));
|
||||
button.onClick(async () => {
|
||||
@@ -2345,6 +2351,18 @@ export class RemotelySaveSettingTab extends PluginSettingTab {
|
||||
"onedrive"
|
||||
).open();
|
||||
});
|
||||
})
|
||||
.addButton(async (button) => {
|
||||
button.setButtonText(t("settings_export_webdav_button"));
|
||||
button.onClick(async () => {
|
||||
new ExportSettingsQrCodeModal(this.app, this.plugin, "webdav").open();
|
||||
});
|
||||
})
|
||||
.addButton(async (button) => {
|
||||
button.setButtonText(t("settings_export_webdis_button"));
|
||||
button.onClick(async () => {
|
||||
new ExportSettingsQrCodeModal(this.app, this.plugin, "webdis").open();
|
||||
});
|
||||
});
|
||||
|
||||
let importSettingVal = "";
|
||||
|
||||
Reference in New Issue
Block a user