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))
+4 -4
View File
@@ -84,14 +84,14 @@ export const GetIconInfo = (action) => {
{"key": "download", "values": ["get", "download"]},
{"key": "search", "values": ["search", "find"]},
{"key": "delete", "values": ["delete", "remove"]},
{"key": "send", "values": ["send", "dispatch", "mail", "forward", "post"]},
{"key": "list", "values": ["list"]},
{"key": "send", "values": ["send", "dispatch", "mail", "forward", "post", "submit"]},
{"key": "repeat", "values": ["repeat", "retry"]},
{"key": "execute", "values": ["execute", "run", "play"]},
{"key": "extract", "values": ["extract", "unpack", "decompress"]},
{"key": "inflate", "values": ["inflate", "pack", "compress",]},
{"key": "edit", "values": ["update", "edit", "put", "patch", "change", "parse", "translate", "replace", "filter", "conver", "map"]},
{"key": "compare", "values": ["compare", "convert", "to"]},
{"key": "edit", "values": ["update", "edit", "put", "patch", "change", "parse", "replace", "filter", "conver", "map"]},
{"key": "compare", "values": ["compare", "convert", "to", "filter", "translate", ]},
{"key": "list", "values": ["list"]},
]
var selectedKey = ""