Use full runtime bindings in automation settings and enable JS bindings for backend log action

This commit is contained in:
Andrew Kingston 2021-12-08 10:59:26 +00:00
parent b8b66b0c07
commit 90011b53cc
1 changed files with 10 additions and 8 deletions

View File

@ -96,13 +96,16 @@
allSteps[idx].schema?.outputs?.properties ?? {} allSteps[idx].schema?.outputs?.properties ?? {}
) )
bindings = bindings.concat( bindings = bindings.concat(
outputs.map(([name, value]) => ({ outputs.map(([name, value]) => {
label: name, const runtime = idx === 0 ? `trigger.${name}` : `steps.${idx}.${name}`
return {
label: runtime,
type: value.type, type: value.type,
description: value.description, description: value.description,
category: idx === 0 ? "Trigger outputs" : `Step ${idx} outputs`, category: idx === 0 ? "Trigger outputs" : `Step ${idx} outputs`,
path: idx === 0 ? `trigger.${name}` : `steps.${idx}.${name}`, path: runtime,
})) }
})
) )
} }
return bindings return bindings
@ -261,7 +264,6 @@
value={inputData[key]} value={inputData[key]}
on:change={e => onChange(e, key)} on:change={e => onChange(e, key)}
{bindings} {bindings}
allowJS={false}
/> />
</div> </div>
{/if} {/if}