Skip to content

Commit

Permalink
fix(settings): fix heading not appearing
Browse files Browse the repository at this point in the history
  • Loading branch information
Mara-Li committed Aug 28, 2023
1 parent 4fe2ac5 commit 336f71b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,7 @@ export class GithubPublisherSettingsTab extends PluginSettingTab {
renderPluginSettings() {
const pluginSettings = this.plugin.settings.plugin;

this.settingsPage.createEl("h3", i18next.t("settings.plugin.head.share"));
this.settingsPage.createEl("h3", {text: i18next.t("settings.plugin.head.share")});
new Setting(this.settingsPage)
.setName(i18next.t("settings.plugin.shareKey.all.title"))
.setDesc(i18next.t("settings.plugin.shareKey.all.desc"))
Expand Down Expand Up @@ -997,7 +997,7 @@ export class GithubPublisherSettingsTab extends PluginSettingTab {
})
);

this.settingsPage.createEl("h3", i18next.t("settings.plugin.head.menu"));
this.settingsPage.createEl("h3", {text: i18next.t("settings.plugin.head.menu")});

new Setting(this.settingsPage)
.setName(i18next.t("settings.plugin.fileMenu.title"))
Expand All @@ -1021,6 +1021,8 @@ export class GithubPublisherSettingsTab extends PluginSettingTab {
await this.plugin.saveSettings();
})
);
this.settingsPage.createEl("h3", {text: i18next.t("settings.plugin.head.copyLinks")});

new Setting(this.settingsPage)
.setName(i18next.t("settings.plugin.copyLink.title"))
.setDesc(i18next.t("settings.plugin.copyLink.desc"))
Expand All @@ -1034,8 +1036,6 @@ export class GithubPublisherSettingsTab extends PluginSettingTab {

})
);

this.settingsPage.createEl("h3", i18next.t("settings.plugin.head.copyLinks"));

if (pluginSettings.copyLink.enable) {
new Setting(this.settingsPage)
Expand Down Expand Up @@ -1077,7 +1077,7 @@ export class GithubPublisherSettingsTab extends PluginSettingTab {
);
}

this.settingsPage.createEl("h3", i18next.t("settings.plugin.head.other"));
this.settingsPage.createEl("h3", {text: i18next.t("settings.plugin.head.other")});

new Setting(this.settingsPage)
.setName(i18next.t("settings.plugin.embedEditRepo.title"))
Expand All @@ -1091,7 +1091,7 @@ export class GithubPublisherSettingsTab extends PluginSettingTab {
})
);

this.settingsPage.createEl("h4", i18next.t("settings.plugin.head.log"));
this.settingsPage.createEl("h4", {text: i18next.t("settings.plugin.head.log")});

new Setting(this.settingsPage)
.setName(i18next.t("settings.plugin.logNoticeHeader.title"))
Expand Down

0 comments on commit 336f71b

Please sign in to comment.