From 6ac237a4f1b175b6bb976063a4818e66924e3251 Mon Sep 17 00:00:00 2001 From: frikky Date: Sun, 27 Dec 2020 08:57:06 +0100 Subject: [PATCH] Got modal with Draggable working --- frontend/src/views/AngularWorkflow.jsx | 133 ++++++++++++------------- frontend/src/views/Workflows.jsx | 1 - 2 files changed, 65 insertions(+), 69 deletions(-) diff --git a/frontend/src/views/AngularWorkflow.jsx b/frontend/src/views/AngularWorkflow.jsx index 73382661..3a3598bc 100644 --- a/frontend/src/views/AngularWorkflow.jsx +++ b/frontend/src/views/AngularWorkflow.jsx @@ -6005,7 +6005,7 @@ const AngularWorkflow = (props) => { document.execCommand("copy"); } - alert.success("Copied "+to_be_copied) + //alert.success("Copied "+to_be_copied) } const executionModal = @@ -6134,8 +6134,6 @@ const AngularWorkflow = (props) => { if (executionData.results.length !== 1 && !showSkippedActions && (data.status === "SKIPPED" || data.status === "FAILURE")) { return null } - console.log(data) - // showResult = replaceAll(showResult, " None", " \"None\"") // Super basic check. @@ -6651,74 +6649,73 @@ const AngularWorkflow = (props) => { const validate = validateJson(selectedResult.result.trim()) return ( - - { - //setCodeModalOpen(false) - }} - PaperComponent= - BackdropProps={{ - invisible: false, - open: false, - style: { - height: 0, - width: 0, - padding: 0, - margin: 0, - background: "none", - boxShadow: "none", - backgroundColor: "transparent", - } - }} - PaperProps={{ - style: { - backgroundColor: surfaceColor, - color: "white", - minWidth: 750, - padding: 30, - maxHeight: 700, - overflow: "auto", - //backgroundColor: "transparent", - boxShadow: "none", - }, - }} - > - { - setCodeModalOpen(false) - }}> - - -
-
- {curapp === null ? null : {selectedResult.app_name}} -
-
{selectedResult.action.label}
-
{selectedResult.action.name}
-
-
-
Status {selectedResult.status}
- {validate.valid ? { - HandleJsonCopy(JSON.stringify(validate.result), select, selectedResult.action.label) - }} - name={"Results for "+selectedResult.action.label} - /> - : + + { + //setCodeModalOpen(false) + }} + BackdropProps={{ + invisible: true, + style: { + backgroundColor: "transparent", + pointerEvents: "none", + } + }} + PaperProps={{ + style: { + pointerEvents: "auto", + backgroundColor: inputColor, + color: "white", + minWidth: 750, + padding: 30, + maxHeight: 700, + overflow: "auto", + //boxShadow: "none", + }, + }} + > + { + setCodeModalOpen(false) + }}> + + +
+
+ {curapp === null ? null : {selectedResult.app_name}}
- Result  - {selectedResult.result} +
{selectedResult.action.label}
+
{selectedResult.action.name}
- }
-
-
+
Status {selectedResult.status}
+ {validate.valid ? { + HandleJsonCopy(JSON.stringify(validate.result), select, selectedResult.action.label) + }} + name={"Results for "+selectedResult.action.label} + /> + : +
+ Result  + {selectedResult.result} +
+ } +
+
+
) } diff --git a/frontend/src/views/Workflows.jsx b/frontend/src/views/Workflows.jsx index 6c9ead3b..57379cad 100644 --- a/frontend/src/views/Workflows.jsx +++ b/frontend/src/views/Workflows.jsx @@ -67,7 +67,6 @@ export const validateJson = (showResult) => { } } - console.log("VALID: ", jsonvalid) return { "valid": jsonvalid, "result": jsonvalid ? JSON.parse(showResult) : showResult,