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) => { 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; return acc;
}, {}); }, {});

View File

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