mirror of
https://github.com/silvanocerza/github-gitless-sync.git
synced 2026-07-22 12:10:28 +00:00
Remove on save setting and rename some headings
This commit is contained in:
parent
6a73dd02e6
commit
858917ec78
2 changed files with 4 additions and 5 deletions
|
|
@ -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,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue