mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-03-02 02:47:52 +01:00
Display names in master import
This commit is contained in:
parent
63bd7611b3
commit
8bf253d293
@ -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;
|
||||
}, {});
|
||||
|
||||
|
@ -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>–</span>
|
||||
<small>{{preset}}</small>
|
||||
{{/if}}
|
||||
</label>
|
||||
{{/with}}
|
||||
{{/each}}
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user