From 1dc3f915a6f2eeaee61250b4b4ef161a8b6050dc Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Wed, 7 Dec 2022 11:04:31 +0100 Subject: [PATCH] fix flow input picker --- frontend/src/lib/components/ArgInfo.svelte | 8 ++++++-- frontend/src/lib/components/FlowViewer.svelte | 2 +- frontend/src/lib/components/ModuleStatus.svelte | 2 ++ .../flows/content/FlowModuleComponent.svelte | 9 ++++++--- .../flows/content/FlowModuleWrapper.svelte | 7 ++++++- .../src/lib/components/graph/FlowGraph.svelte | 17 ++++++++++------- frontend/src/lib/utils.ts | 2 -- 7 files changed, 31 insertions(+), 16 deletions(-) diff --git a/frontend/src/lib/components/ArgInfo.svelte b/frontend/src/lib/components/ArgInfo.svelte index a7128d682a..e8a1850144 100644 --- a/frontend/src/lib/components/ArgInfo.svelte +++ b/frontend/src/lib/components/ArgInfo.svelte @@ -24,8 +24,12 @@ - - + + {#if isString(jsonViewerContent)} +
{jsonViewerContent}
+ {:else} + + {/if}
diff --git a/frontend/src/lib/components/FlowViewer.svelte b/frontend/src/lib/components/FlowViewer.svelte index 979b721792..8536ec1a59 100644 --- a/frontend/src/lib/components/FlowViewer.svelte +++ b/frontend/src/lib/components/FlowViewer.svelte @@ -2,7 +2,7 @@ import Highlight from 'svelte-highlight' import json from 'svelte-highlight/languages/json' import { faClipboard } from '@fortawesome/free-solid-svg-icons' - import type { FlowModule, FlowValue } from '$lib/gen' + import type { FlowValue } from '$lib/gen' import { Tab, Tabs, TabContent, Button } from './common' import SchemaViewer from './SchemaViewer.svelte' import FieldHeader from './FieldHeader.svelte' diff --git a/frontend/src/lib/components/ModuleStatus.svelte b/frontend/src/lib/components/ModuleStatus.svelte index 96e0244275..2f2960834c 100644 --- a/frontend/src/lib/components/ModuleStatus.svelte +++ b/frontend/src/lib/components/ModuleStatus.svelte @@ -30,6 +30,8 @@ {:else if type == FlowStatusModule.type.SUCCESS} Success +{:else if type == FlowStatusModule.type.FAILURE} + Failure {/if}