Fixed further user input problems
This commit is contained in:
@@ -4221,7 +4221,7 @@ If you're interested, please let me know a time that works for you, or set up a
|
||||
/>
|
||||
<ListItemText
|
||||
primary="Type"
|
||||
style={{ minWidth: 125, maxWidth: 125 }}
|
||||
style={{ minWidth: 100, maxWidth: 100, }}
|
||||
/>
|
||||
<ListItemText
|
||||
primary={"In Queue"}
|
||||
@@ -4229,7 +4229,7 @@ If you're interested, please let me know a time that works for you, or set up a
|
||||
/>
|
||||
<ListItemText
|
||||
primary="Default"
|
||||
style={{ minWidth: 150, maxWidth: 150 }}
|
||||
style={{ minWidth: 100, maxWidth: 100 }}
|
||||
/>
|
||||
<ListItemText
|
||||
primary="Actions"
|
||||
@@ -4359,22 +4359,22 @@ If you're interested, please let me know a time that works for you, or set up a
|
||||
|
||||
<ListItemText
|
||||
primary={environment.Type}
|
||||
style={{ minWidth: 125, maxWidth: 125 }}
|
||||
style={{ minWidth: 100, maxWidth: 100, }}
|
||||
/>
|
||||
<ListItemText
|
||||
style={{
|
||||
minWidth: 100,
|
||||
maxWidth: 100,
|
||||
overflow: "hidden",
|
||||
marginLeft: 10,
|
||||
marginLeft: 0,
|
||||
}}
|
||||
|
||||
primary={queueSize}
|
||||
/>
|
||||
<ListItemText
|
||||
style={{
|
||||
minWidth: 140,
|
||||
maxWidth: 140,
|
||||
minWidth: 80,
|
||||
maxWidth: 80,
|
||||
overflow: "hidden",
|
||||
}}
|
||||
primary={environment.default ? "true" : null}
|
||||
@@ -4382,7 +4382,7 @@ If you're interested, please let me know a time that works for you, or set up a
|
||||
{environment.default ? null : (
|
||||
<Button
|
||||
variant="outlined"
|
||||
style={{ marginRight: 5 }}
|
||||
style={{ marginLeft: 0, marginRight: 0, }}
|
||||
onClick={() => setDefaultEnvironment(environment)}
|
||||
color="primary"
|
||||
>
|
||||
|
||||
@@ -10634,7 +10634,6 @@ const AngularWorkflow = (defaultprops) => {
|
||||
};
|
||||
|
||||
const handleWorkflowSelectionUpdate = (e, isUserinput) => {
|
||||
setUpdate(Math.random());
|
||||
|
||||
if (e.target.value === undefined || e.target.value === null || e.target.value.id === undefined) {
|
||||
console.log("Returning as there's no id. Value: ", e.target.value);
|
||||
@@ -10642,6 +10641,16 @@ const AngularWorkflow = (defaultprops) => {
|
||||
}
|
||||
|
||||
const paramIndex = isUserinput === true ? 5 : 0
|
||||
|
||||
console.log("USERINPUT: ", paramIndex, workflow.triggers[selectedTriggerIndex])
|
||||
if (workflow.triggers[selectedTriggerIndex].parameters[paramIndex] === undefined || workflow.triggers[selectedTriggerIndex].parameters[paramIndex] === null) {
|
||||
workflow.triggers[selectedTriggerIndex].parameters[paramIndex] = {
|
||||
"name": "subflow",
|
||||
"value": "",
|
||||
}
|
||||
}
|
||||
|
||||
setUpdate(Math.random());
|
||||
workflow.triggers[selectedTriggerIndex].parameters[paramIndex].value = e.target.value.id;
|
||||
setSubworkflow(e.target.value);
|
||||
|
||||
|
||||
@@ -181,20 +181,20 @@ const LoginDialog = (props) => {
|
||||
);
|
||||
}
|
||||
|
||||
if (responseJson.tutorials === undefined || responseJson.tutorials === null || !responseJson.tutorials.includes("welcome")) {
|
||||
console.log("RUN Welcome!!")
|
||||
window.location.pathname = "/welcome"
|
||||
return
|
||||
}
|
||||
if (responseJson.tutorials === undefined || responseJson.tutorials === null || !responseJson.tutorials.includes("welcome")) {
|
||||
console.log("RUN Welcome!!")
|
||||
window.location.pathname = "/welcome"
|
||||
return
|
||||
}
|
||||
|
||||
const tmpView = new URLSearchParams(window.location.search).get("view")
|
||||
if (tmpView !== undefined && tmpView !== null) {
|
||||
//const newUrl = `/${tmpView}${decodeURIComponent(window.location.search)}`
|
||||
const newUrl = `/${tmpView}`
|
||||
window.location.pathname = newUrl
|
||||
} else {
|
||||
window.location.pathname = "/workflows"
|
||||
}
|
||||
const tmpView = new URLSearchParams(window.location.search).get("view")
|
||||
if (tmpView !== undefined && tmpView !== null) {
|
||||
//const newUrl = `/${tmpView}${decodeURIComponent(window.location.search)}`
|
||||
const newUrl = `/${tmpView}`
|
||||
window.location.pathname = newUrl
|
||||
} else {
|
||||
window.location.pathname = "/workflows"
|
||||
}
|
||||
|
||||
setIsLoggedIn(true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user