Skip to content

Commit 7d95385

Browse files
committed
use SetHeading, and clarify language for property mappings
1 parent edbdcd3 commit 7d95385

File tree

1 file changed

+10
-13
lines changed

1 file changed

+10
-13
lines changed

src/settings/Settings.ts

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ export class MediaDbSettingTab extends PluginSettingTab {
347347
// });
348348
// });
349349

350-
containerEl.createEl('h3', { text: 'New file location' });
350+
new Setting(containerEl).setName('New file location').setHeading();
351351
// region new file location
352352
new Setting(containerEl)
353353
.setName('Movie folder')
@@ -453,7 +453,7 @@ export class MediaDbSettingTab extends PluginSettingTab {
453453
});
454454
// endregion
455455

456-
containerEl.createEl('h3', { text: 'Template settings' });
456+
new Setting(containerEl).setName('Template settings').setHeading();
457457
// region templates
458458
new Setting(containerEl)
459459
.setName('Movie template')
@@ -560,7 +560,7 @@ export class MediaDbSettingTab extends PluginSettingTab {
560560
});
561561
// endregion
562562

563-
containerEl.createEl('h3', { text: 'File name settings' });
563+
new Setting(containerEl).setName('File name settings').setHeading();
564564
// region file name templates
565565
new Setting(containerEl)
566566
.setName('Movie file name template')
@@ -661,19 +661,16 @@ export class MediaDbSettingTab extends PluginSettingTab {
661661

662662
// region Property Mappings
663663
if (this.plugin.settings.useDefaultFrontMatter) {
664-
containerEl.createEl('h3', { text: 'Property mappings' });
664+
new Setting(containerEl).setName('Property mappings').setHeading();
665665

666666
const propertyMappingExplanation = containerEl.createEl('div');
667667
propertyMappingExplanation.innerHTML = `
668-
<p>Remap the metadata fields of newly created media DB entries.</p>
669-
<p>
670-
The options are:
671-
<ul>
672-
<li>"default": does no remapping and keeps the metadata field as it is</li>
673-
<li>"remap": renames the metadata field to what ever you specify</li>
674-
<li>"remove": removes the metadata field entirely</li>
675-
</ul>
676-
</p>
668+
<p>Choose how metadata fields are mapped to property names. The options are:</p>
669+
<ul>
670+
<li><strong>default</strong>: keep the original name.</li>
671+
<li><strong>remap</strong>: rename the property.</li>
672+
<li><strong>remove</strong>: remove the property entirely.</li>
673+
</ul>
677674
<p>
678675
Don't forget to save your changes using the save button for each individual category.
679676
</p>`;

0 commit comments

Comments
 (0)