Add bulk enabling settings

This commit is contained in:
Kwaroran
2025-02-15 21:45:00 +09:00
parent f131b4aac3
commit 4da60032d8
5 changed files with 29 additions and 20 deletions

View File

@@ -54,4 +54,8 @@
<div class="flex items-center mt-2">
<Check bind:check={DBState.db.inlayErrorResponse} name={language.inlayErrorResponse}/>
</div>
<div class="flex items-center mt-2">
<Check bind:check={DBState.db.bulkEnabling} name={language.bulkEnabling}/>
</div>

View File

@@ -133,25 +133,27 @@
}} class="hover:text-textcolor ml-2 cursor-pointer">
<FolderUpIcon />
</button>
<button onclick={() => {
toggleCharacterLoreAlwaysActive()
}} class="hover:text-textcolor ml-2 cursor-pointer flex items-center gap-1">
{#if isAllCharacterLoreAlwaysActive()}
<SunIcon />
{:else}
<LinkIcon />
{/if}
<span class="text-xs">CHAR</span>
</button>
<button onclick={() => {
toggleChatLoreAlwaysActive()
}} class="hover:text-textcolor ml-2 cursor-pointer flex items-center gap-1">
{#if isAllChatLoreAlwaysActive()}
<SunIcon />
{:else}
<LinkIcon />
{/if}
<span class="text-xs">CHAT</span>
</button>
{#if DBState.db.bulkEnabling}
<button onclick={() => {
toggleCharacterLoreAlwaysActive()
}} class="hover:text-textcolor ml-2 cursor-pointer flex items-center gap-1">
{#if isAllCharacterLoreAlwaysActive()}
<SunIcon />
{:else}
<LinkIcon />
{/if}
<span class="text-xs">CHAR</span>
</button>
<button onclick={() => {
toggleChatLoreAlwaysActive()
}} class="hover:text-textcolor ml-2 cursor-pointer flex items-center gap-1">
{#if isAllChatLoreAlwaysActive()}
<SunIcon />
{:else}
<LinkIcon />
{/if}
<span class="text-xs">CHAT</span>
</button>
{/if}
</div>
{/if}