Added action filtering in workflow

This commit is contained in:
frikky
2021-05-05 06:52:47 +02:00
parent 85120cab1d
commit e75282f86f
4 changed files with 102 additions and 12 deletions
+8
View File
@@ -3392,8 +3392,16 @@ const AngularWorkflow = (props) => {
}
const setNewSelectedAction = (e) => {
// FIXME - should change icon-node (descriptor) as well
console.log("Got value: ", e)
const newaction = selectedApp.actions.find(a => a.name === e.target.value)
//console.log("Failed to parse app?: ", newaction)
if (newaction === undefined || newaction === null) {
alert.error("Failed to find the action")
return
}
// Does this one find the wrong one?
selectedAction.name = newaction.name
selectedAction.parameters = JSON.parse(JSON.stringify(newaction.parameters))