Got modal with Draggable working

This commit is contained in:
frikky
2020-12-27 08:57:06 +01:00
parent 49ee75006c
commit 6ac237a4f1
2 changed files with 65 additions and 69 deletions
+15 -18
View File
@@ -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,38 +6649,37 @@ const AngularWorkflow = (props) => {
const validate = validateJson(selectedResult.result.trim())
return (
<Draggable>
<Draggable
position={{
x: 0,
y: 0,
}}
>
<Dialog
disableEnforceFocus={true}
style={{pointerEvents: "none"}}
hideBackdrop={true}
open={codeModalOpen}
transition={Fade}
hasBackdrop={false}
onClose={() => {
//setCodeModalOpen(false)
}}
PaperComponent=<Draggable />
BackdropProps={{
invisible: false,
open: false,
invisible: true,
style: {
height: 0,
width: 0,
padding: 0,
margin: 0,
background: "none",
boxShadow: "none",
backgroundColor: "transparent",
pointerEvents: "none",
}
}}
PaperProps={{
style: {
backgroundColor: surfaceColor,
pointerEvents: "auto",
backgroundColor: inputColor,
color: "white",
minWidth: 750,
padding: 30,
maxHeight: 700,
overflow: "auto",
//backgroundColor: "transparent",
boxShadow: "none",
//boxShadow: "none",
},
}}
>
-1
View File
@@ -67,7 +67,6 @@ export const validateJson = (showResult) => {
}
}
console.log("VALID: ", jsonvalid)
return {
"valid": jsonvalid,
"result": jsonvalid ? JSON.parse(showResult) : showResult,