#432: Fixed bools in authentication fields

This commit is contained in:
frikky
2021-07-19 00:59:15 +02:00
parent ecdadf5c2c
commit 2499a3176e
2 changed files with 8 additions and 2 deletions
+1
View File
@@ -1168,6 +1168,7 @@ const ParsedAction = (props) => {
<Tooltip color="secondary" title="Value must be unique" placement="top">
<div style={{cursor: "pointer", color: staticcolor}} onClick={(e) => {}}>
<Checkbox
tabIndex="-1"
checked={selectedActionParameters[count].unique_toggled}
style={{
color: theme.palette.primary.secondary,
+7 -2
View File
@@ -8612,8 +8612,12 @@ const AngularWorkflow = (props) => {
if (selectedApp.authentication.parameters[key].value !== undefined && selectedApp.authentication.parameters[key].value !== null && selectedApp.authentication.parameters[key].value.length > 0) {
authenticationOption.fields[selectedApp.authentication.parameters[key].name] = selectedApp.authentication.parameters[key].value
} else {
alert.info("Field "+selectedApp.authentication.parameters[key].name+" can't be empty")
return
if (selectedApp.authentication.parameters[key].schema.type === "bool") {
authenticationOption.fields[selectedApp.authentication.parameters[key].name] = "false"
} else {
alert.info("Field "+selectedApp.authentication.parameters[key].name+" can't be empty")
return
}
}
}
}
@@ -8710,6 +8714,7 @@ const AngularWorkflow = (props) => {
defaultValue={"false"}
fullWidth
onChange={(e) => {
console.log("Value: ", e.target.value)
authenticationOption.fields[data.name] = e.target.value
}}
style={{backgroundColor: theme.palette.surfaceColor, color: "white", height: 50}}