mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-06 08:01:35 +00:00
nit: fix typo in ai form filling text (#5959)
* differentiate flow from script * fix typing
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user