Display names in master import

8bf253d293b68dc3b40af5ba56282a960a28b269

Cohee <18619528+Cohee1207@users.noreply.github.com>

2 files changed, +9 -3Showing whitespace changes
public/scripts/preset-manager.js+1 -1
@@ -235,7 +235,7 @@ class PresetManager {
235235 }
236236
237237 const sectionNames = validSections.reduce((acc, key) => {
238238 acc[key] = { key: key, name: this.masterSections[key].name, preset: data[key]?.name || '' };
239239 return acc;
240240 }, {});
241241
public/scripts/templates/masterImport.html+8 -2
@@ -3,9 +3,15 @@
33</h3>
44<div class="flex-container flexFlowColumn justifyLeft">
55 {{#each sections}}
6+ {{#with this}}
67 <label class="checkbox_label">
78 <input type="checkbox" value="{{@key}}" checked>
89 <span data-i18n="{{thisname}}">{{thisname}}</span>
10+ {{#if preset}}
11+ <span>&ndash;</span>
12+ <small>{{preset}}</small>
13+ {{/if}}
914 </label>
15+ {{/with}}
1016 {{/each}}
1117</div>