@@ -18279,7 +18285,7 @@ const AngularWorkflow = (defaultprops) => {
};
const handleActionHover = (inside, actionId) => {
- if (cy !== undefined) {
+ if (cy !== undefined && cy !== null) {
var node = cy.getElementById(actionId);
if (node.length > 0) {
if (inside) {
@@ -18719,7 +18725,7 @@ const AngularWorkflow = (defaultprops) => {
setDistributedFromParent("")
}
- if (cy !== undefined) {
+ if (cy !== undefined && cy !== null) {
cy.removeListener("select");
cy.removeListener("unselect");
@@ -21287,7 +21293,7 @@ const AngularWorkflow = (defaultprops) => {
width: 30,
}}
onClick={() => {
- if (cy !== undefined) {
+ if (cy !== undefined && cy !== null) {
const oldstartnode = cy.getElementById(data.action.id);
//console.log("FOUND NODe: ", oldstartnode)
if (oldstartnode !== undefined && oldstartnode !== null) {
diff --git a/frontend/src/views/AppExplorer.jsx b/frontend/src/views/AppExplorer.jsx
index 03c6ca6f..bcdc77b5 100644
--- a/frontend/src/views/AppExplorer.jsx
+++ b/frontend/src/views/AppExplorer.jsx
@@ -3042,9 +3042,11 @@ const AppExplorer = (props) => {
const getDownloadUrl = () => {
- const appEnding = app?.public === true ? app?.app_verison : app?.id
+ console.log("APP: ", app)
- return `curl -L \ \\\n "${globalUrl}/api/v1/download_docker_image?image=frikky/shuffle:${app?.name.toLowerCase().replaceAll(' ', '_')}_${appEnding}" \\\n -H \"Authorization: Bearer ${userdata?.apikey}" \\\n -o image.zip; \\\n docker load -i image.zip`
+ const appEnding = app?.public === true ? app?.app_version : app?.id
+
+ return `curl -L \ \\\n "${globalUrl}/api/v1/download_docker_image?image=frikky/shuffle:${app?.name.toLowerCase().replaceAll(' ', '_')}_${appEnding}" \\\n -H \"Authorization: Bearer APIKEY" \\\n -o image.zip; \\\n docker load -i image.zip`
}
const renderedActionOptions = deduplicateByName((
@@ -3231,7 +3233,7 @@ const AppExplorer = (props) => {
- Use the App onprem
+ Use the App onprem (hybrid)
Due to using docker containers with privately uploaded containers, we had to use a custom registry. Use the command below to download the image to the server if it fails to run.
@@ -3583,22 +3585,6 @@ const AppExplorer = (props) => {
extraUrl = descSplit[descSplit.length-1]
}
- //for (let [line,lineval] in Object.entries(descSplit)) {
- // if (descSplit[line].includes("http") && descSplit[line].includes("://")) {
- // const urlsplit = descSplit[line].split("/")
- // try {
- // extraUrl = "/"+urlsplit.slice(3, urlsplit.length).join("/")
- // } catch (e) {
- // //console.log("Failed - running with -1")
- // extraUrl = "/"+urlsplit.slice(3, urlsplit.length-1).join("/")
- // }
-
-
- // //console.log("NO BASEURL TOO!! Why missing last one in certain scenarios (sevco)?", extraUrl, urlsplit, descSplit[line])
- // //break
- // }
- //}
-
if (extraUrl.length > 0) {
if (extraUrl.includes(" ")) {
extraUrl = extraUrl.split(" ")[0]
diff --git a/frontend/src/views/RunWorkflow.jsx b/frontend/src/views/RunWorkflow.jsx
index 7db8db89..34b8c38c 100644
--- a/frontend/src/views/RunWorkflow.jsx
+++ b/frontend/src/views/RunWorkflow.jsx
@@ -117,7 +117,7 @@ const RunWorkflow = (defaultprops) => {
props.match = {}
props.match.params = params
- const defaultTitle = workflow.name !== undefined ? "Shuffle - Form for " + workflow.name : "Shuffle - Form to Run Workflows"
+ const defaultTitle = workflow.name !== undefined ? "Form for " + workflow.name : "Shuffle - Form to Run Workflows"
if (document != undefined && document.title != defaultTitle) {
document.title = defaultTitle
}
@@ -152,7 +152,7 @@ const RunWorkflow = (defaultprops) => {
}
}
- console.log("EXEC: ", executionArgument)
+ //console.log("EXEC: ", executionArgument)
for (var key in executionArgument) {
if (executionArgument[key] === undefined || executionArgument[key] === null || executionArgument[key] === "") {
return false
@@ -705,6 +705,8 @@ const RunWorkflow = (defaultprops) => {
break
}
}
+ } else {
+ setInputQuestions(responseJson.input_questions)
}
if (responseJson.form_control.input_markdown !== undefined && responseJson.form_control.input_markdown !== null && responseJson.form_control.input_markdown.length > 0) {
@@ -894,7 +896,6 @@ const RunWorkflow = (defaultprops) => {
const fetchUpdates = (execution_id, authorization, getorg, replaceMarkdown) => {
if (execution_id === undefined || execution_id === null || execution_id === "") {
- console.log("No execution id: ", execution_id)
stop()
return
}
@@ -1225,9 +1226,9 @@ const RunWorkflow = (defaultprops) => {
}
- {workflow.input_questions !== undefined && workflow.input_questions !== null && workflow.input_questions.length > 0 ?
+ {workflow?.input_questions !== undefined && workflow?.input_questions !== null && workflow?.input_questions?.length > 0 ?
- {inputQuestions.map((question, index) => {
+ {inputQuestions?.map((question, index) => {
// Multiple choice checks for semicolon-splits
var multiChoiceOptions = question.value !== undefined && question.value !== null && question.value.length > 0 && question.value.includes(";") ? question.value.split(";") : []
@@ -1241,9 +1242,12 @@ const RunWorkflow = (defaultprops) => {
return (
+
+ {question.name}
+
+
{multiChoiceOptions.length > 1 ?
- {question.name}