From 97d8428664b380d8fa2bb0e9dc09f582bdcba352 Mon Sep 17 00:00:00 2001 From: Faton Ramadani Date: Wed, 14 Aug 2024 16:04:06 +0200 Subject: [PATCH] feat(frontend): fix build --- .../components/flows/map/FlowJobsMenu.svelte | 37 ++++++++----------- .../lib/components/flows/map/MapItem.svelte | 2 +- frontend/src/lib/utils.ts | 2 +- 3 files changed, 18 insertions(+), 23 deletions(-) diff --git a/frontend/src/lib/components/flows/map/FlowJobsMenu.svelte b/frontend/src/lib/components/flows/map/FlowJobsMenu.svelte index 98f9645648..6e3f0ba6a2 100644 --- a/frontend/src/lib/components/flows/map/FlowJobsMenu.svelte +++ b/frontend/src/lib/components/flows/map/FlowJobsMenu.svelte @@ -1,5 +1,5 @@ - - + ? 'text-red-400' + : 'text-secondary'}" + > + #{selected == -1 ? '?' : selected + 1} + + + +
diff --git a/frontend/src/lib/components/flows/map/MapItem.svelte b/frontend/src/lib/components/flows/map/MapItem.svelte index 3afe38ca06..f29895ac78 100644 --- a/frontend/src/lib/components/flows/map/MapItem.svelte +++ b/frontend/src/lib/components/flows/map/MapItem.svelte @@ -79,7 +79,7 @@
{/if} {#if flowJobs && !insertable} -
+
{ dispatch('selectedIteration', e.detail) diff --git a/frontend/src/lib/utils.ts b/frontend/src/lib/utils.ts index 1a278c9c79..75b2889804 100644 --- a/frontend/src/lib/utils.ts +++ b/frontend/src/lib/utils.ts @@ -11,7 +11,7 @@ import { deepEqual } from 'fast-equals' import YAML from 'yaml' import type { UserExt } from './stores' import { sendUserToast } from './toast' -import type { Script, WorkspaceDeployUISettings } from './gen' +import type { Script } from './gen' import type { EnumType, SchemaProperty } from './common' import type { Schema } from './common' export { sendUserToast }