{
- if (selectedWorkflow.id !== data.id) {
- setSelectedWorkflow(data)
- //getWorkflowExecution(data.id)
- }
- }}/>
-
+
+
+
-
- {
- if (selectedWorkflow.id !== data.id) {
- setSelectedWorkflow(data)
- //getWorkflowExecution(data.id)
- }
- }}>
-
- {data.name}
-
-
+
+
+ {parsedName}
+
-
-
-
+
+
+
+
+
+ {actions}
+
+
-
- executeWorkflow(data.id)} />
+
+
+
+
+ {triggers}
+
+
+
+
+
+
+ {subflows}
+
+
+
+ {/*
- {webhooks > 0 ?
@@ -623,8 +638,9 @@ const MyView = (props) => {
: null}
+ */}
-
+
{data.tags !== undefined ?
data.tags.map((tag, index) => {
if (index >= 3) {
@@ -634,7 +650,7 @@ const MyView = (props) => {
return (
{
: null}
-
{data.actions !== undefined && data.actions !== null ?
-
+
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
- : null}
-
+ : null}
+
+
)
}
@@ -772,7 +786,6 @@ borderRadius: "4px", color: "black", height: "30px", "width": "30px", fontSize:
marginTop: "5px",
color: "white",
backgroundColor: surfaceColor,
- cursor: "pointer",
display: "flex",
}
@@ -1294,13 +1307,12 @@ borderRadius: "4px", color: "black", height: "30px", "width": "30px", fontSize:
let workflowData = "";
if (workflows.length > 0) {
const columns = [
- { field: 'id', headerName: 'ID', width: 70, sortable: false, },
{ field: 'title', headerName: 'Title', width: 330, },
{ field: 'actions', headerName: 'Actions', width: 200, sortable: false,
disableClickEventBubbling: true,
renderCell: (params) => {
const data = params.row.record;
- let [schedules, webhooks] = getWorkFlowMeta(data);
+ let [triggers, schedules, webhooks, subflows] = getWorkflowMeta(data);
return
@@ -1340,10 +1352,11 @@ borderRadius: "4px", color: "black", height: "30px", "width": "30px", fontSize:
if (index >= 3) {
return null
}
+
return (
{view === "grid" && (
-
+
{workflows.map((data, index) => {
return (
)
})}
-
+
)}
{view === "list" && (
diff --git a/frontend/src/views/Workflows.jsx b/frontend/src/views/Workflows.jsx
index a955924a..9e477c29 100644
--- a/frontend/src/views/Workflows.jsx
+++ b/frontend/src/views/Workflows.jsx
@@ -447,12 +447,12 @@ const Workflows = (props) => {
for (var branchkey in data.branches) {
const branch = data.branches[branchkey]
if (branch.source_id === data.actions[key].id) {
- console.log("CHANGING SOURCE ID IN ACTION")
+ //console.log("CHANGING SOURCE ID IN ACTION")
branch.source_id = newId
}
if (branch.destination_id === data.actions[key].id) {
- console.log("CHANGING DESTINATION ID IN ACTION")
+ //console.log("CHANGING DESTINATION ID IN ACTION")
branch.destination_id = newId
}
}
@@ -505,10 +505,8 @@ const Workflows = (props) => {
data = sanitizeWorkflow(data)
alert.info("Sanitizing and publishing "+data.name)
- const url = isCloud ? globalUrl : "https://shuffler.io"
-
// This ALWAYS talks to Shuffle cloud
- fetch(url+"/api/v1/workflows/"+data.id+"/publish", {
+ fetch(globalUrl+"/api/v1/workflows/"+data.id+"/publish", {
method: 'POST',
headers: {
'Content-Type': 'application/json',
@@ -521,7 +519,11 @@ const Workflows = (props) => {
if (response.status !== 200) {
console.log("Status not 200 for workflow publish :O!")
} else {
- alert.success("Successfully published workflow")
+ if (isCloud) {
+ alert.success("Successfully published workflow")
+ } else {
+ alert.success("Successfully published workflow to https://shuffler.io")
+ }
}
return response.json()
@@ -690,12 +692,10 @@ const Workflows = (props) => {
setNewWorkflowTags(JSON.parse(JSON.stringify(data.tags)))
}
}} key={"change"}>{"Change details"}
- {isCloud ?
-
- : null}
+