From 63bd7611b316d84f834c74ffedc0c483b1bb3d32 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Sun, 22 Sep 2024 20:47:05 +0300 Subject: [PATCH] Uncheck textgen preset from master export by default --- public/scripts/preset-manager.js | 2 +- public/scripts/templates/masterExport.html | 14 ++++++++++---- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/public/scripts/preset-manager.js b/public/scripts/preset-manager.js index d46996d7a..5971ec2d6 100644 --- a/public/scripts/preset-manager.js +++ b/public/scripts/preset-manager.js @@ -278,7 +278,7 @@ class PresetManager { */ static async performMasterExport() { 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; }, {}); const html = $(await renderTemplateAsync('masterExport', { sections: sectionNames })); diff --git a/public/scripts/templates/masterExport.html b/public/scripts/templates/masterExport.html index 55491aef5..7eede9883 100644 --- a/public/scripts/templates/masterExport.html +++ b/public/scripts/templates/masterExport.html @@ -3,9 +3,15 @@
{{#each sections}} - + {{#with this}} + + {{/with}} {{/each}}