Readd side menu reroll button
This commit is contained in:
@@ -529,4 +529,5 @@ export const languageEnglish = {
|
|||||||
edit: "Edit",
|
edit: "Edit",
|
||||||
enableGlobal: "Enable Globally",
|
enableGlobal: "Enable Globally",
|
||||||
chatModulesInfo: "You can enable or disable modules for this chat.",
|
chatModulesInfo: "You can enable or disable modules for this chat.",
|
||||||
|
sideMenuRerollButton: "Side Menu Reroll Button",
|
||||||
}
|
}
|
||||||
@@ -666,15 +666,12 @@
|
|||||||
<span class="ml-2">{language.autoSuggest}</span>
|
<span class="ml-2">{language.autoSuggest}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{#if $DataBase.sideMenuRerollButton}
|
||||||
<div class="flex items-center cursor-pointer hover:text-green-500 transition-colors" on:click={() => {
|
<div class="flex items-center cursor-pointer hover:text-green-500 transition-colors" on:click={reroll}>
|
||||||
$CurrentChat.modules ??= []
|
<RefreshCcwIcon />
|
||||||
openModuleList = true
|
<span class="ml-2">{language.reroll}</span>
|
||||||
openMenu = false
|
</div>
|
||||||
}}>
|
{/if}
|
||||||
<PackageIcon />
|
|
||||||
<span class="ml-2">{language.modules}</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/if}
|
{/if}
|
||||||
|
|||||||
@@ -38,3 +38,7 @@
|
|||||||
<div class="flex items-center mt-2">
|
<div class="flex items-center mt-2">
|
||||||
<Check bind:check={$DataBase.showMenuChatList} name={language.showMenuChatList}/>
|
<Check bind:check={$DataBase.showMenuChatList} name={language.showMenuChatList}/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="flex items-center mt-2">
|
||||||
|
<Check bind:check={$DataBase.sideMenuRerollButton} name={language.sideMenuRerollButton}/>
|
||||||
|
</div>
|
||||||
@@ -590,6 +590,7 @@ export interface Database{
|
|||||||
memoryLimitThickness?:number
|
memoryLimitThickness?:number
|
||||||
modules: RisuModule[]
|
modules: RisuModule[]
|
||||||
enabledModules: string[]
|
enabledModules: string[]
|
||||||
|
sideMenuRerollButton?:boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface customscript{
|
export interface customscript{
|
||||||
|
|||||||
Reference in New Issue
Block a user