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:
Ruben Fiszel
2023-12-30 11:39:05 +09:00
committed by GitHub
parent 1add830eb1
commit be962bb69c
@@ -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}