Merge branch 'kwaroran:main' into patch-23
This commit is contained in:
@@ -132,6 +132,8 @@
|
||||
<div class="flex items-center mt-4">
|
||||
<Check bind:check={currentModule.hideIcon} name={language.hideChatIcon}/>
|
||||
</div>
|
||||
<span class="mt-4">{language.customPromptTemplateToggle} <Help key='customPromptTemplateToggle' /></span>
|
||||
<TextAreaInput bind:value={currentModule.customModuleToggle}/>
|
||||
{/if}
|
||||
{#if submenu === 1 && (Array.isArray(currentModule.lorebook))}
|
||||
<div class="border border-selected p-2 flex flex-col rounded-md mt-2">
|
||||
|
||||
@@ -82,6 +82,10 @@
|
||||
e.stopPropagation()
|
||||
const d = await alertConfirm(`${language.removeConfirm}` + rmodule.name)
|
||||
if(d){
|
||||
if(DBState.db.enabledModules.includes(rmodule.id)){
|
||||
DBState.db.enabledModules.splice(DBState.db.enabledModules.indexOf(rmodule.id), 1)
|
||||
DBState.db.enabledModules = DBState.db.enabledModules
|
||||
}
|
||||
const index = DBState.db.modules.findIndex((v) => v.id === rmodule.id)
|
||||
DBState.db.modules.splice(index, 1)
|
||||
DBState.db.modules = DBState.db.modules
|
||||
|
||||
Reference in New Issue
Block a user