mirror of
https://github.com/Ellpeck/ObsidianJustSharePlease.git
synced 2024-11-26 12:18:35 +01:00
parent
5ae82374ff
commit
6537a84562
1 changed files with 4 additions and 4 deletions
|
@ -30,12 +30,12 @@ export class JSPSettingsTab extends PluginSettingTab {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
new Setting(this.containerEl)
|
new Setting(this.containerEl)
|
||||||
.setName("Strip frontmatter")
|
.setName("Include file properties")
|
||||||
.setDesc("Whether document frontmatter (also known as properties) should be removed from the uploaded share.")
|
.setDesc("Whether the file properties of the shared note should be included in the share as visible frontmatter.")
|
||||||
.addToggle(t => {
|
.addToggle(t => {
|
||||||
t.setValue(this.plugin.settings.stripFrontmatter);
|
t.setValue(!this.plugin.settings.stripFrontmatter);
|
||||||
t.onChange(async v => {
|
t.onChange(async v => {
|
||||||
this.plugin.settings.stripFrontmatter = v;
|
this.plugin.settings.stripFrontmatter = !v;
|
||||||
await this.plugin.saveSettings();
|
await this.plugin.saveSettings();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue