#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,
|
||||||
|
|||||||
@@ -8611,12 +8611,16 @@ const AngularWorkflow = (props) => {
|
|||||||
if (authenticationOption.fields[selectedApp.authentication.parameters[key].name].length === 0) {
|
if (authenticationOption.fields[selectedApp.authentication.parameters[key].name].length === 0) {
|
||||||
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 {
|
||||||
|
if (selectedApp.authentication.parameters[key].schema.type === "bool") {
|
||||||
|
authenticationOption.fields[selectedApp.authentication.parameters[key].name] = "false"
|
||||||
} else {
|
} else {
|
||||||
alert.info("Field "+selectedApp.authentication.parameters[key].name+" can't be empty")
|
alert.info("Field "+selectedApp.authentication.parameters[key].name+" can't be empty")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
console.log("Action: ", selectedAction)
|
console.log("Action: ", selectedAction)
|
||||||
selectedAction.authentication_id = authenticationOption.id
|
selectedAction.authentication_id = authenticationOption.id
|
||||||
@@ -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