mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-21 08:02:26 +00:00
fix: decision tree fix wording (#2941)
* fix(frontend): Fix decision tree (#2928) * fix(frontend): wip * fix(frontend): wip * fix(frontend): decision tree history * fix(frontend): fix wording * fix(frontend): fix wording * fix(frontend): fix wording * Carousel link and trigger frontend (#2929) Co-authored-by: Faton Ramadani <faton.ramadani14@gmail.com> --------- Co-authored-by: Faton Ramadani <faton.ramadani14@gmail.com> Co-authored-by: Henri Courdent <122811744+hcourdent@users.noreply.github.com>
This commit is contained in:
+7
-3
@@ -84,15 +84,19 @@
|
||||
</Label>
|
||||
|
||||
{#if selectedNode.next.length > 1}
|
||||
{#each selectedNode.next as subNode, index (subNode.id)}
|
||||
{#each selectedNode.next.sort((n1, n2) => {
|
||||
return n1.id.localeCompare(n2.id)
|
||||
}) as subNode, index (subNode.id)}
|
||||
{#if subNode.condition}
|
||||
<div class="flex flex-row gap-4 items-center w-full justify-center">
|
||||
<div class="grow relative">
|
||||
<InputsSpecEditor
|
||||
key={`condition-${selectedNode.id}-${index}`}
|
||||
customTitle={`${index > 0 ? 'Otherwise ' : ''}Goes to "${
|
||||
customTitle={`${index > 0 ? 'Otherwise ' : ''}Goes to branch ${
|
||||
index + 1
|
||||
} (First node: ${
|
||||
nodes?.find((node) => node.id == subNode.id)?.label
|
||||
}" if:`}
|
||||
}) if:`}
|
||||
bind:componentInput={subNode.condition}
|
||||
id={selectedNode.id}
|
||||
userInputEnabled={false}
|
||||
|
||||
Reference in New Issue
Block a user