{
>
- Expected Output
+
+ {selectedAction === undefined ? "" : selectedAction.name === "execute_python" ? "Code to run" : "Expected Output"}
@@ -1598,7 +1599,7 @@ const CodeEditor = (props) => {
border: `1px solid ${theme.palette.primary.main}`,
position: "absolute",
top: 24,
- right: 65,
+ right: 100,
maxHeight: 35,
minWidth: 70,
}}
@@ -1609,7 +1610,7 @@ const CodeEditor = (props) => {
{executing ?
:
- Try it
+ {selectedAction === undefined ? "" : selectedAction.name === "execute_python" ? "Run Python Code" : "Try it"}
}
diff --git a/frontend/src/views/AngularWorkflow.jsx b/frontend/src/views/AngularWorkflow.jsx
index 5f472183..75613a2b 100755
--- a/frontend/src/views/AngularWorkflow.jsx
+++ b/frontend/src/views/AngularWorkflow.jsx
@@ -2104,8 +2104,8 @@ const releaseToConnectLabel = "Release to Connect"
})
.catch((error) => {
setSavingState(0);
- //toast(error.toString());
console.log("Save workflow error: ", error.toString());
+ toast.warn("Failed to save the workflow. Is the network down?")
});
if (originalWorkflow.id === undefined || originalWorkflow.id === null || originalWorkflow.id.length === 0 || useworkflow.id === originalWorkflow.id) {
@@ -8431,7 +8431,7 @@ const releaseToConnectLabel = "Release to Connect"
})
}}
>
- New execution variable
+ New Runtime variable
@@ -8739,7 +8739,8 @@ const releaseToConnectLabel = "Release to Connect"
}
if (parsedApp === undefined || parsedApp === null || parsedApp.data === undefined || parsedApp.data === null) {
- toast("Failed to add trigger. Please try again.")
+ toast("Failed to add node. Please try again.")
+ console.log("Failed to add node. Please try again. Parsed app:", parsedApp)
return
}
@@ -18987,7 +18988,7 @@ const releaseToConnectLabel = "Release to Connect"
data.value = data.value.substring(2)
}
- if (!data.value.startsWith("http") || (data.value.startsWith("/") && data.value.includes("?"))) {
+ if (data.value.startsWith("http") || (data.value.startsWith("/") && data.value.includes("?"))) {
showlink = true
}
}
@@ -19282,7 +19283,7 @@ const releaseToConnectLabel = "Release to Connect"
const result = execution.results.find((data) => data.status === "SUCCESS" && data.action.id === selectedResult.action.id)
if (result !== undefined) {
- const oldstartnode = cy.getElementById(selectedResult.action.id);
+ const oldstartnode = cy.getElementById(selectedResult.action.id)
if (oldstartnode !== undefined && oldstartnode !== null) {
const foundname = oldstartnode.data("label")
if (foundname !== undefined && foundname !== null) {
@@ -19290,8 +19291,8 @@ const releaseToConnectLabel = "Release to Connect"
}
}
- setSelectedResult(result);
- setUpdate(Math.random());
+ setSelectedResult(result)
+ setUpdate(Math.random())
break;
}
}
diff --git a/frontend/src/views/Workflows.jsx b/frontend/src/views/Workflows.jsx
index b742157a..299e0c2d 100755
--- a/frontend/src/views/Workflows.jsx
+++ b/frontend/src/views/Workflows.jsx
@@ -130,7 +130,6 @@ export const GetIconInfo = (action) => {
// Finds the icon based on the action. Should be verbs.
const iconList = [
{ key: "cases", values: ["cases"] },
- { key: "communication", values: ["communication", "comms", "email",] },
{ key: "cache_add", values: ["set_cache"] },
{ key: "cache_get", values: ["get_cache"] },
{ key: "filter", values: ["filter"] },
@@ -200,6 +199,7 @@ export const GetIconInfo = (action) => {
values: ["compare", "convert", "to", "filter", "translate", "parse"],
},
{ key: "close", values: ["close", "stop", "cancel", "block"] },
+ { key: "communication", values: ["communication", "comms", "email", "mail",] },
];
var selectedKey = ""