#432: Fixed bools in authentication fields
This commit is contained in:
@@ -1168,6 +1168,7 @@ const ParsedAction = (props) => {
|
|||||||
<Tooltip color="secondary" title="Value must be unique" placement="top">
|
<Tooltip color="secondary" title="Value must be unique" placement="top">
|
||||||
<div style={{cursor: "pointer", color: staticcolor}} onClick={(e) => {}}>
|
<div style={{cursor: "pointer", color: staticcolor}} onClick={(e) => {}}>
|
||||||
<Checkbox
|
<Checkbox
|
||||||
|
tabIndex="-1"
|
||||||
checked={selectedActionParameters[count].unique_toggled}
|
checked={selectedActionParameters[count].unique_toggled}
|
||||||
style={{
|
style={{
|
||||||
color: theme.palette.primary.secondary,
|
color: theme.palette.primary.secondary,
|
||||||
|
|||||||
@@ -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) {
|
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
|
authenticationOption.fields[selectedApp.authentication.parameters[key].name] = selectedApp.authentication.parameters[key].value
|
||||||
} else {
|
} else {
|
||||||
alert.info("Field "+selectedApp.authentication.parameters[key].name+" can't be empty")
|
if (selectedApp.authentication.parameters[key].schema.type === "bool") {
|
||||||
return
|
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"}
|
defaultValue={"false"}
|
||||||
fullWidth
|
fullWidth
|
||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
|
console.log("Value: ", e.target.value)
|
||||||
authenticationOption.fields[data.name] = e.target.value
|
authenticationOption.fields[data.name] = e.target.value
|
||||||
}}
|
}}
|
||||||
style={{backgroundColor: theme.palette.surfaceColor, color: "white", height: 50}}
|
style={{backgroundColor: theme.palette.surfaceColor, color: "white", height: 50}}
|
||||||
|
|||||||
Reference in New Issue
Block a user