[fix] gui crashing

This commit is contained in:
kwaroran
2023-07-19 00:13:28 +09:00
parent 057ffa3fd5
commit e91ce0b0c1
3 changed files with 8 additions and 5 deletions

View File

@@ -5,8 +5,9 @@
import { alertConfirm } from "../../ts/alert";
import Check from "../UI/GUI/Check.svelte";
import Help from "../Others/Help.svelte";
import TextInput from "../UI/GUI/TextInput.svelte";
import NumberInput from "../UI/GUI/NumberInput.svelte";
import TextInput from "../UI/GUI/TextInput.svelte";
import NumberInput from "../UI/GUI/NumberInput.svelte";
import TextAreaInput from "../UI/GUI/TextAreaInput.svelte";
export let value:loreBook
export let onRemove: () => void = () => {}
let open = false
@@ -58,7 +59,7 @@
<span class="text-neutral-200 mt-4">{language.insertOrder} <Help key="loreorder"/></span>
<NumberInput size="sm" bind:value={value.insertorder} min={0} max={1000}/>
<span class="text-neutral-200 mt-4 mb-2">{language.prompt}</span>
<TextInput autocomplete="off" bind:value={value.content} />
<TextAreaInput autocomplete="off" bind:value={value.content} />
<div class="flex items-center mt-4">
<Check bind:check={value.alwaysActive} name={language.alwaysActive}/>
</div>