nit: fix typo in ai form filling text (#5959)

* differentiate flow from script

* fix typing
This commit is contained in:
centdix
2025-06-17 11:24:50 +02:00
committed by GitHub
parent 7490e883d7
commit 8407ac148b
4 changed files with 9 additions and 2 deletions
@@ -1085,6 +1085,7 @@
<div class="mt-3">
<AIFormSettings
bind:prompt={script.schema.prompt_for_ai as string | undefined}
type="script"
/>
</div>
{/if}
@@ -48,6 +48,7 @@
$: containerHeight = getContainerHeight(items, yPerPx, getComputedCols)
const onResize = throttle(() => {
if (!getComputedCols) return
items = specifyUndefinedColumns(items, getComputedCols, cols)
dispatch('resize', {
cols: getComputedCols,
@@ -75,6 +76,7 @@
xPerPx = width / getComputedCols!
if (!containerWidth) {
if (!getComputedCols) return
items = specifyUndefinedColumns(items, getComputedCols, cols)
dispatch('mount', {
@@ -4,6 +4,7 @@
import Tooltip from '../Tooltip.svelte'
export let prompt: string | undefined = undefined
export let type: 'flow' | 'script' = 'script'
</script>
<div class="flex flex-col gap-2">
@@ -18,7 +19,7 @@
}
}}
options={{
right: 'Enable filling script inputs with AI'
right: `Enable filling ${type} inputs with AI`
}}
/>
{#if prompt !== undefined}
@@ -126,7 +126,10 @@
</Label>
{#if flowStore.val.schema}
<AIFormSettings bind:prompt={flowStore.val.schema.prompt_for_ai as string | undefined} />
<AIFormSettings
bind:prompt={flowStore.val.schema.prompt_for_ai as string | undefined}
type="flow"
/>
{/if}
</div>