Remove on save setting and rename some headings

This commit is contained in:
Silvano Cerza 2025-01-09 09:32:42 +01:00
parent 6a73dd02e6
commit 858917ec78
2 changed files with 4 additions and 5 deletions

View file

@ -5,7 +5,7 @@ export interface GitHubSyncSettings {
githubBranch: string;
repoContentDir: string;
localContentDir: string;
syncStrategy: "save" | "manual" | "interval";
syncStrategy: "manual" | "interval";
syncInterval: number;
}
@ -16,6 +16,6 @@ export const DEFAULT_SETTINGS: GitHubSyncSettings = {
githubBranch: "main",
repoContentDir: "",
localContentDir: "",
syncStrategy: "save",
syncStrategy: "manual",
syncInterval: 1,
};

View file

@ -16,7 +16,7 @@ export default class GitHubSyncSettingsTab extends PluginSettingTab {
containerEl.createEl("h1", { text: "GitHub Sync Settings" });
containerEl.createEl("h2", { text: "Repository settings" });
containerEl.createEl("h2", { text: "Remote Repository" });
let tokenInput: TextComponent;
new Setting(containerEl)
@ -85,7 +85,7 @@ export default class GitHubSyncSettingsTab extends PluginSettingTab {
}),
);
containerEl.createEl("h2", { text: "Sync settings" });
containerEl.createEl("h2", { text: "Sync" });
new Setting(containerEl)
.setName("Repository content directory")
@ -122,7 +122,6 @@ export default class GitHubSyncSettingsTab extends PluginSettingTab {
);
const saveStrategies = {
save: "On file save",
manual: "Manually",
interval: "On Interval",
};