feat(frontend): UI nits
This commit is contained in:
@@ -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) => {
|
||||
|
||||
@@ -225,7 +225,7 @@
|
||||
|
||||
const viewport = writable<Viewport>({
|
||||
x: 0,
|
||||
y: 0,
|
||||
y: 5,
|
||||
zoom: 1
|
||||
})
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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) +
|
||||
'/' +
|
||||
|
||||
Reference in New Issue
Block a user