Seems to be working still... Trying to update packages.
This commit is contained in:
@@ -11,6 +11,13 @@
|
||||
|
||||
let { event_id, template_id = null }: Props = $props();
|
||||
|
||||
function preventDefault<T extends Event>(fn: (event: T) => void) {
|
||||
return function (event: T) {
|
||||
event.preventDefault();
|
||||
fn(event);
|
||||
};
|
||||
}
|
||||
|
||||
const dispatch = createEventDispatcher();
|
||||
|
||||
// Form fields
|
||||
@@ -121,7 +128,7 @@
|
||||
}
|
||||
</script>
|
||||
|
||||
<form onsubmit|preventDefault={handle_submit} class="p-4 space-y-4">
|
||||
<form onsubmit={preventDefault(() => {handle_submit})} class="p-4 space-y-4">
|
||||
<h3 class="h3">{template_id ? 'Edit' : 'Create New'} Badge Template</h3>
|
||||
|
||||
<label class="label">
|
||||
|
||||
@@ -3100,9 +3100,6 @@ zzzz
|
||||
preset-outlined-success-400-600
|
||||
shadow-lg rounded-lg
|
||||
"
|
||||
on:change={(e) => {
|
||||
$journals_loc.entry.llm__system_prompt = e.detail;
|
||||
}}
|
||||
/>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
@@ -344,13 +344,10 @@
|
||||
show_line_numbers={false}
|
||||
placeholder="LLM System Prompt"
|
||||
class="
|
||||
p-1
|
||||
preset-outlined-success-400-600
|
||||
shadow-lg rounded-lg
|
||||
"
|
||||
on:change={(e) => {
|
||||
$journals_loc.entry.llm__system_prompt = e.detail;
|
||||
}}
|
||||
p-1
|
||||
preset-outlined-success-400-600
|
||||
shadow-lg rounded-lg
|
||||
"
|
||||
/>
|
||||
</label>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user