mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-03-03 03:17:54 +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) => {
|
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;
|
||||||
}, {});
|
}, {});
|
||||||
|
|
||||||
|
@ -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>–</span>
|
||||||
|
<small>{{preset}}</small>
|
||||||
|
{{/if}}
|
||||||
|
</label>
|
||||||
|
{{/with}}
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user