mirror of
https://github.com/lostpaul/obsidian-folder-notes.git
synced 2026-07-22 07:40:24 +00:00
Fixed some build issues
This commit is contained in:
parent
2f7d6a76f7
commit
8d68bbd0b4
2 changed files with 5 additions and 0 deletions
|
|
@ -0,0 +1 @@
|
|||
export {}
|
||||
|
|
@ -228,7 +228,9 @@ export class SettingsTab extends PluginSettingTab {
|
|||
|
||||
display(contentEl?: HTMLElement, yaml?: overviewSettings, plugin?: FolderNotesPlugin, defaultSettings?: boolean, display?: CallableFunction, el?: HTMLElement, ctx?: MarkdownPostProcessorContext, file?: TFile | null, settingsTab?: this) {
|
||||
plugin = this?.plugin ?? plugin;
|
||||
if (!plugin) { return; }
|
||||
plugin.settingsOpened = true;
|
||||
if (!settingsTab) { return; }
|
||||
settingsTab = this ?? settingsTab;
|
||||
const { containerEl } = settingsTab;
|
||||
|
||||
|
|
@ -245,10 +247,12 @@ export class SettingsTab extends PluginSettingTab {
|
|||
// @ts-ignore
|
||||
for (const tabEl of tabBar.children) {
|
||||
tabEl.removeClass('fn-settings-tab-active');
|
||||
if (!plugin) { return; }
|
||||
plugin.settings.settingsTab = tabId.toLocaleLowerCase();
|
||||
plugin.saveSettings();
|
||||
}
|
||||
tabEl.addClass('fn-settings-tab-active');
|
||||
if (!settingsTab) { return; }
|
||||
settingsTab.renderSettingsPage(tabId);
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue