mirror of
https://github.com/nathonius/obsidian-github-link.git
synced 2026-07-22 09:20:25 +00:00
✨ feat: #102 Add refresh and pagination settings
This commit is contained in:
parent
b7ac55dc59
commit
e5aaebc1bb
1 changed files with 22 additions and 0 deletions
|
|
@ -95,6 +95,28 @@ export class GithubLinkPluginSettingsTab extends PluginSettingTab {
|
|||
});
|
||||
});
|
||||
|
||||
new Setting(containerEl)
|
||||
.setName("Show refresh button")
|
||||
.setDesc("Add a refresh button to tables to manually skip the cache.")
|
||||
.addToggle((toggle) => {
|
||||
toggle.setValue(PluginSettings.showRefresh);
|
||||
toggle.onChange((value) => {
|
||||
PluginSettings.showRefresh = value;
|
||||
void this.saveSettings();
|
||||
});
|
||||
});
|
||||
|
||||
new Setting(containerEl)
|
||||
.setName("Show pagination")
|
||||
.setDesc("For query results with more than a single page of results, show pagination controls below the table.")
|
||||
.addToggle((toggle) => {
|
||||
toggle.setValue(PluginSettings.showPagination);
|
||||
toggle.onChange((value) => {
|
||||
PluginSettings.showPagination = value;
|
||||
void this.saveSettings();
|
||||
});
|
||||
});
|
||||
|
||||
new Setting(containerEl)
|
||||
.setName("Status tooltips")
|
||||
.setDesc("Add a tooltip to issue and pull request status icons with status text")
|
||||
|
|
|
|||
Loading…
Reference in a new issue