fix add property not in portal

This commit is contained in:
Ruben Fiszel
2023-03-22 21:47:59 +01:00
parent 58167a16cd
commit d935dba28b
4 changed files with 15 additions and 13 deletions
+15 -10
View File
@@ -12,6 +12,7 @@
import Toggle from './Toggle.svelte'
import Tooltip from './Tooltip.svelte'
import { flip } from 'svelte/animate'
import Portal from 'svelte-portal'
const dispatch = createEventDispatcher()
@@ -178,8 +179,10 @@
/>
<div class="ml-2">
<Tooltip>
Arguments can be edited either using the wizard, or by editing their JSON Schema,
<a href="https://docs.windmill.dev/docs/reference/#script-parameters-to-json-schema">see docs</a>
Arguments can be edited either using the wizard, or by editing their JSON Schema,
<a href="https://docs.windmill.dev/docs/reference/#script-parameters-to-json-schema"
>see docs</a
>
</Tooltip>
</div>
</div>
@@ -281,11 +284,13 @@
</div>
</div>
<SchemaModal
bind:this={schemaModal}
bind:property={modalProperty}
bind:error={argError}
on:save={handleAddOrEditArgument}
bind:editing
bind:oldArgName
/>
<Portal>
<SchemaModal
bind:this={schemaModal}
bind:property={modalProperty}
bind:error={argError}
on:save={handleAddOrEditArgument}
bind:editing
bind:oldArgName
/>
</Portal>
@@ -14,7 +14,6 @@
export let name: string
export let inlineScript: InlineScript | undefined
export let fields: Record<string, StaticAppInput | ConnectedAppInput | RowAppInput | UserAppInput>
export let autoRefresh: boolean
export let doNotRecomputeOnInputChanged: boolean = false
let result: any = undefined
@@ -160,7 +160,6 @@
inlineScript={script.inlineScript}
name={script.name}
fields={script.fields}
autoRefresh={script.autoRefresh ?? true}
/>
{/if}
{/each}
@@ -176,7 +176,6 @@
inlineScript={script.inlineScript}
name={script.name}
fields={script.fields}
autoRefresh={script.autoRefresh ?? true}
doNotRecomputeOnInputChanged={script.doNotRecomputeOnInputChanged}
/>
{/if}