From 4148552b776eb31de13a353da79264286a25d0da Mon Sep 17 00:00:00 2001 From: frikky Date: Tue, 18 Aug 2020 08:44:10 +0200 Subject: [PATCH] Added an export all function --- frontend/src/views/Workflows.jsx | 41 ++++++++++++++++++++++---------- 1 file changed, 28 insertions(+), 13 deletions(-) diff --git a/frontend/src/views/Workflows.jsx b/frontend/src/views/Workflows.jsx index 1f55de4f..90190952 100644 --- a/frontend/src/views/Workflows.jsx +++ b/frontend/src/views/Workflows.jsx @@ -16,6 +16,7 @@ import Switch from '@material-ui/core/Switch'; import CircularProgress from '@material-ui/core/CircularProgress'; import CachedIcon from '@material-ui/icons/Cached'; +import GetAppIcon from '@material-ui/icons/GetApp'; import EditIcon from '@material-ui/icons/Edit'; import MoreVertIcon from '@material-ui/icons/MoreVert'; import PlayArrowIcon from '@material-ui/icons/PlayArrow'; @@ -126,14 +127,15 @@ const Workflows = (props) => { color: "#ffffff", width: "100%", display: "flex", - maxWidth: "1768px", + minWidth: 1366, + maxWidth: 1766, margin: "auto", maxHeight: "90vh", } const emptyWorkflowStyle = { paddingTop: "200px", - width: "1024px", + width: 1024, margin: "auto", } @@ -263,6 +265,12 @@ const Workflows = (props) => { return new Promise((resolve) => setTimeout(resolve, time)); } + const exportAllWorkflows = () => { + for (var key in workflows) { + exportWorkflow(workflows[key]) + } + } + const exportWorkflow = (data) => { console.log("export") let dataStr = JSON.stringify(data) @@ -364,9 +372,9 @@ const Workflows = (props) => { }}>
- + - +
{ if (selectedWorkflow.id !== data.id) { setSelectedWorkflow(data) @@ -418,7 +426,7 @@ const Workflows = (props) => {
-
{ +
{ if (selectedWorkflow.id !== data.id) { setSelectedWorkflow(data) getWorkflowExecution(data.id) @@ -472,9 +480,9 @@ const Workflows = (props) => { setSelectedExecution(data) }}>
- + - +

Status: {data.status}

Actions: {results}/{actions} @@ -910,9 +918,9 @@ const Workflows = (props) => { const viewSize = { - workflowView: 1, - executionsView: 1, - executionResults: 2, + workflowView: 4, + executionsView: 3, + executionResults: 4, } const workflowViewStyle = { @@ -943,7 +951,14 @@ const Workflows = (props) => { */} - + + + + @@ -982,10 +997,10 @@ const Workflows = (props) => {
-
+

Execution Timeline

-
+
Collapse results
}