mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2024-12-11 17:07:07 +01:00
Uncheck textgen preset from master export by default
This commit is contained in:
parent
9101fb6573
commit
63bd7611b3
@ -278,7 +278,7 @@ class PresetManager {
|
|||||||
*/
|
*/
|
||||||
static async performMasterExport() {
|
static async performMasterExport() {
|
||||||
const sectionNames = Object.entries(this.masterSections).reduce((acc, [key, section]) => {
|
const sectionNames = Object.entries(this.masterSections).reduce((acc, [key, section]) => {
|
||||||
acc[key] = section.name;
|
acc[key] = { key: key, name: section.name, checked: key !== 'preset' };
|
||||||
return acc;
|
return acc;
|
||||||
}, {});
|
}, {});
|
||||||
const html = $(await renderTemplateAsync('masterExport', { sections: sectionNames }));
|
const html = $(await renderTemplateAsync('masterExport', { sections: sectionNames }));
|
||||||
|
@ -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>
|
{{#if checked}}
|
||||||
</label>
|
<input type="checkbox" value="{{key}}" checked />
|
||||||
|
{{else}}
|
||||||
|
<input type="checkbox" value="{{key}}" />
|
||||||
|
{{/if}}
|
||||||
|
<span data-i18n="{{name}}">{{name}}</span>
|
||||||
|
</label>
|
||||||
|
{{/with}}
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user