Display names in master import

8bf253d293b68dc3b40af5ba56282a960a28b269

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

2 files changed, +11 -5Ignore whitespace
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+10 -4
@@ -3,9 +3,15 @@
33</h3>
44<div class="flex-container flexFlowColumn justifyLeft">
55 {{#each sections}}
6- <label class="checkbox_label">
6+ {{#with this}}
7- <input type="checkbox" value="{{@key}}" checked>
7+ <label class="checkbox_label">
8- <span data-i18n="{{this}}">{{this}}</span>
8+ <input type="checkbox" value="{{key}}" checked>
9- </label>
9+ <span data-i18n="{{name}}">{{name}}</span>
10+ {{#if preset}}
11+ <span>&ndash;</span>
12+ <small>{{preset}}</small>
13+ {{/if}}
14+ </label>
15+ {{/with}}
1016 {{/each}}
1117</div>