Got modal with Draggable working
This commit is contained in:
@@ -6005,7 +6005,7 @@ const AngularWorkflow = (props) => {
|
|||||||
document.execCommand("copy");
|
document.execCommand("copy");
|
||||||
}
|
}
|
||||||
|
|
||||||
alert.success("Copied "+to_be_copied)
|
//alert.success("Copied "+to_be_copied)
|
||||||
}
|
}
|
||||||
|
|
||||||
const executionModal =
|
const executionModal =
|
||||||
@@ -6134,8 +6134,6 @@ const AngularWorkflow = (props) => {
|
|||||||
if (executionData.results.length !== 1 && !showSkippedActions && (data.status === "SKIPPED" || data.status === "FAILURE")) {
|
if (executionData.results.length !== 1 && !showSkippedActions && (data.status === "SKIPPED" || data.status === "FAILURE")) {
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
console.log(data)
|
|
||||||
|
|
||||||
|
|
||||||
// showResult = replaceAll(showResult, " None", " \"None\"")
|
// showResult = replaceAll(showResult, " None", " \"None\"")
|
||||||
// Super basic check.
|
// Super basic check.
|
||||||
@@ -6651,38 +6649,37 @@ const AngularWorkflow = (props) => {
|
|||||||
const validate = validateJson(selectedResult.result.trim())
|
const validate = validateJson(selectedResult.result.trim())
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Draggable>
|
<Draggable
|
||||||
|
position={{
|
||||||
|
x: 0,
|
||||||
|
y: 0,
|
||||||
|
}}
|
||||||
|
>
|
||||||
<Dialog
|
<Dialog
|
||||||
|
disableEnforceFocus={true}
|
||||||
|
style={{pointerEvents: "none"}}
|
||||||
|
hideBackdrop={true}
|
||||||
open={codeModalOpen}
|
open={codeModalOpen}
|
||||||
transition={Fade}
|
|
||||||
hasBackdrop={false}
|
|
||||||
onClose={() => {
|
onClose={() => {
|
||||||
//setCodeModalOpen(false)
|
//setCodeModalOpen(false)
|
||||||
}}
|
}}
|
||||||
PaperComponent=<Draggable />
|
|
||||||
BackdropProps={{
|
BackdropProps={{
|
||||||
invisible: false,
|
invisible: true,
|
||||||
open: false,
|
|
||||||
style: {
|
style: {
|
||||||
height: 0,
|
|
||||||
width: 0,
|
|
||||||
padding: 0,
|
|
||||||
margin: 0,
|
|
||||||
background: "none",
|
|
||||||
boxShadow: "none",
|
|
||||||
backgroundColor: "transparent",
|
backgroundColor: "transparent",
|
||||||
|
pointerEvents: "none",
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
PaperProps={{
|
PaperProps={{
|
||||||
style: {
|
style: {
|
||||||
backgroundColor: surfaceColor,
|
pointerEvents: "auto",
|
||||||
|
backgroundColor: inputColor,
|
||||||
color: "white",
|
color: "white",
|
||||||
minWidth: 750,
|
minWidth: 750,
|
||||||
padding: 30,
|
padding: 30,
|
||||||
maxHeight: 700,
|
maxHeight: 700,
|
||||||
overflow: "auto",
|
overflow: "auto",
|
||||||
//backgroundColor: "transparent",
|
//boxShadow: "none",
|
||||||
boxShadow: "none",
|
|
||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -67,7 +67,6 @@ export const validateJson = (showResult) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log("VALID: ", jsonvalid)
|
|
||||||
return {
|
return {
|
||||||
"valid": jsonvalid,
|
"valid": jsonvalid,
|
||||||
"result": jsonvalid ? JSON.parse(showResult) : showResult,
|
"result": jsonvalid ? JSON.parse(showResult) : showResult,
|
||||||
|
|||||||
Reference in New Issue
Block a user