mirror of
https://github.com/stracker-phil/obsidian-mention-things.git
synced 2026-07-22 05:43:27 +00:00
♻️ Use proper settings API
This commit is contained in:
parent
ac35f81a33
commit
a7e461bde1
1 changed files with 3 additions and 3 deletions
|
|
@ -25,7 +25,7 @@ export class SettingsTab extends PluginSettingTab {
|
|||
|
||||
containerEl.empty();
|
||||
|
||||
containerEl.createEl('h2', { text: 'Mention Things' });
|
||||
new Setting(containerEl).setName('Mention Things').setHeading();
|
||||
|
||||
// Render mention types section
|
||||
this.renderMentionTypesSection(containerEl, usedSigns);
|
||||
|
|
@ -38,7 +38,7 @@ export class SettingsTab extends PluginSettingTab {
|
|||
* Render the mention types section of the settings
|
||||
*/
|
||||
private renderMentionTypesSection(containerEl: HTMLElement, usedSigns: string[]): void {
|
||||
containerEl.createEl('h3', { text: 'Mention Types' });
|
||||
new Setting(containerEl).setName('Mention Types').setHeading();
|
||||
|
||||
// Render each mention type
|
||||
this.plugin.settings.mentionTypes.forEach((value, index) => {
|
||||
|
|
@ -108,7 +108,7 @@ export class SettingsTab extends PluginSettingTab {
|
|||
* Render general settings section
|
||||
*/
|
||||
private renderGeneralSettings(containerEl: HTMLElement): void {
|
||||
containerEl.createEl('h3', { text: 'General Settings' });
|
||||
new Setting(containerEl).setName('General Settings').setHeading();
|
||||
|
||||
// Match from start setting
|
||||
new Setting(containerEl)
|
||||
|
|
|
|||
Loading…
Reference in a new issue