Added styling to all workflow actions

This commit is contained in:
frikky
2021-05-30 15:46:15 +02:00
parent 49453f6041
commit 23d120947a
9 changed files with 210 additions and 37 deletions
@@ -65,6 +65,12 @@ const Workflow = (props) => {
return null
}
if (apps === undefined || apps === null || apps.length === 0) {
console.log("No apps loaded: ", apps)
setConfigureWorkflowModalOpen(false)
return null
}
setFirstLoad(workflow.id)
const newactions = []
for (var key in workflow.actions) {
+2
View File
@@ -1515,6 +1515,7 @@ const ParsedAction = (props) => {
if (newValue !== undefined && newValue !== null) {
setNewSelectedAction({"target": {"value": newValue.name}})
}
}}
renderOption={(data) => {
var newActionname = data.name
@@ -1524,6 +1525,7 @@ const ParsedAction = (props) => {
const iconInfo = GetIconInfo({"name": data.name})
const useIcon = iconInfo.originalIcon
newActionname = (newActionname.charAt(0).toUpperCase()+newActionname.substring(1)).replaceAll("_", " ")
return (