feat(frontend): UI nits

This commit is contained in:
Faton Ramadani
2024-08-15 11:22:17 +02:00
parent 7fe0a8f366
commit 4925d2e07f
4 changed files with 4 additions and 5 deletions

View File

@@ -78,7 +78,7 @@
{annotation}
</div>
{/if}
{#if flowJobs && !insertable}
{#if flowJobs && !insertable && (mod.value.type === 'forloopflow' || mod.value.type === 'whileloopflow')}
<div class="absolute right-8 z-50 -top-5">
<FlowJobsMenu
on:selectedIteration={(e) => {

View File

@@ -225,7 +225,7 @@
const viewport = writable<Viewport>({
x: 0,
y: 0,
y: 5,
zoom: 1
})

View File

@@ -74,8 +74,6 @@ export default function graphBuilder(
// Index of the target module in the modules array
let index = mods?.findIndex((m) => m.id === targetId) ?? -1
console.log('addEdge', sourceId, targetId, options?.disableMoveIds)
edges.push({
id: options?.customId || `edge:${sourceId}->${targetId}`,
source: sourceId,

View File

@@ -49,7 +49,8 @@
<MapItem
mod={data.module}
insertable={data.insertable}
annotation={state?.flow_jobs
annotation={flowJobs &&
(data.module.value.type === 'forloopflow' || data.module.value.type === 'whileloopflow')
? 'Iteration: ' +
(selectedIteration >= 0 ? selectedIteration : state?.flow_jobs?.length) +
'/' +