Display names in master import

This commit is contained in:
Cohee 2024-09-22 20:50:36 +03:00
parent 63bd7611b3
commit 8bf253d293
2 changed files with 11 additions and 5 deletions

View File

@ -235,7 +235,7 @@ class PresetManager {
}
const sectionNames = validSections.reduce((acc, key) => {
acc[key] = this.masterSections[key].name;
acc[key] = { key: key, name: this.masterSections[key].name, preset: data[key]?.name || '' };
return acc;
}, {});

View File

@ -3,9 +3,15 @@
</h3>
<div class="flex-container flexFlowColumn justifyLeft">
{{#each sections}}
<label class="checkbox_label">
<input type="checkbox" value="{{@key}}" checked>
<span data-i18n="{{this}}">{{this}}</span>
</label>
{{#with this}}
<label class="checkbox_label">
<input type="checkbox" value="{{key}}" checked>
<span data-i18n="{{name}}">{{name}}</span>
{{#if preset}}
<span>&ndash;</span>
<small>{{preset}}</small>
{{/if}}
</label>
{{/with}}
{{/each}}
</div>