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 {
235 }235 }
236236
237 const sectionNames = validSections.reduce((acc, key) => {237 const sectionNames = validSections.reduce((acc, key) => {
238 acc[key] = this.masterSections[key].name;238 acc[key] = { key: key, name: this.masterSections[key].name, preset: data[key]?.name || '' };
239 return acc;239 return acc;
240 }, {});240 }, {});
241241
public/scripts/templates/masterImport.html+8 -2
@@ -3,9 +3,15 @@
3</h3>3</h3>
4<div class="flex-container flexFlowColumn justifyLeft">4<div class="flex-container flexFlowColumn justifyLeft">
5 {{#each sections}}5 {{#each sections}}
6 {{#with this}}
6 <label class="checkbox_label">7 <label class="checkbox_label">
7 <input type="checkbox" value="{{@key}}" checked>8 <input type="checkbox" value="{{key}}" checked>
8 <span data-i18n="{{this}}">{{this}}</span>9 <span data-i18n="{{name}}">{{name}}</span>
10 {{#if preset}}
11 <span>&ndash;</span>
12 <small>{{preset}}</small>
13 {{/if}}
9 </label>14 </label>
15 {{/with}}
10 {{/each}}16 {{/each}}
11</div>17</div>