diff --git a/frontend/src/lib/components/FlowPreviewContent.svelte b/frontend/src/lib/components/FlowPreviewContent.svelte index 11a51c7046..90f62940c1 100644 --- a/frontend/src/lib/components/FlowPreviewContent.svelte +++ b/frontend/src/lib/components/FlowPreviewContent.svelte @@ -3,7 +3,6 @@ import { workspaceStore } from '$lib/stores' import { faClose, faPlay } from '@fortawesome/free-solid-svg-icons' - import { Button } from 'flowbite-svelte' import { createEventDispatcher, getContext, onDestroy } from 'svelte' import Icon from 'svelte-awesome' import { flowStateStore } from './flows/flowState' @@ -14,6 +13,7 @@ import SchemaForm from './SchemaForm.svelte' import FlowStatusViewer from '../components/FlowStatusViewer.svelte' + import { Button } from './common' export let previewMode: 'upTo' | 'whole' let jobId: string | undefined = undefined @@ -72,7 +72,7 @@ -
-
- -
+
+ +
+
+ {#if intervalState === 'running'} + + {:else} + + {/if}
- {#if intervalState === 'running'} - - {:else} - - {/if}
{#if jobId} diff --git a/frontend/src/lib/components/SchemaForm.svelte b/frontend/src/lib/components/SchemaForm.svelte index b7b285164f..52a3251dcc 100644 --- a/frontend/src/lib/components/SchemaForm.svelte +++ b/frontend/src/lib/components/SchemaForm.svelte @@ -12,6 +12,8 @@ export let isValid: boolean = true export let extraLib: string = 'missing extraLib' export let importPath: string | undefined = undefined + let clazz: string = '' + export { clazz as class } let inputCheck: { [id: string]: boolean } = {} $: isValid = allTrue(inputCheck) ?? false @@ -32,7 +34,7 @@ $: schema?.properties && removeExtraKey() -
+
{#if Object.keys(schema?.properties ?? {}).length > 0} {#each Object.keys(schema?.properties ?? {}) as argName} {#if inputTransform}