Made popout window for previous response moveable

This commit is contained in:
frikky
2022-02-16 19:25:06 +01:00
parent 92fa70a373
commit be31c329de
2 changed files with 6 additions and 44 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
#curl http://localhost:5001/api/v1/files/create -H "Authorization: Bearer db0373c6-1083-4dec-a05d-3ba73f02ccd4" -d '{"filename": "file.txt", "org_id": "b199646b-16d2-456d-9fd6-b9972e929466", "workflow_id": "global"}'
#
#echo
#curl http://localhost:5001/api/v1/files/e19cffe4-e2da-47e9-809e-904f5cb03687/upload -H "Authorization: Bearer db0373c6-1083-4dec-a05d-3ba73f02ccd4" -F 'shuffle_file=@files.sh'
curl http://localhost:5001/api/v1/apps/upload -H "Authorization: Bearer db0373c6-1083-4dec-a05d-3ba73f02ccd4" -F 'shuffle_file=@files.sh'
#
#curl http://localhost:5001/api/v1/files/1915981b-b897-4db1-8a2e-44bc34cead3b/content -H "Authorization: Bearer db0373c6-1083-4dec-a05d-3ba73f02ccd4"
#curl http://localhost:5001/api/v1/files/e19cffe4-e2da-47e9-809e-904f5cb03687 -H "Authorization: Bearer db0373c6-1083-4dec-a05d-3ba73f02ccd4"
+5 -43
View File
@@ -2237,8 +2237,9 @@ const AngularWorkflow = (defaultprops) => {
setLastSaved(false);
parentNode.data("isStartNode", true);
}
//event.target.unselect();
setRightSideBarOpen(true);
return
} else if (data.buttonType === "copy") {
console.log("COPY!");
@@ -5680,7 +5681,7 @@ const AngularWorkflow = (defaultprops) => {
newSelectedAction.errors = [];
newSelectedAction.isValid = true;
newSelectedAction.is_valid = true;
console.log(newSelectedAction)
//console.log(newSelectedAction)
// Simmple action swap autocompleter
if (selectedAction.parameters !== undefined && newSelectedAction.parameters !== undefined && selectedAction.id === newSelectedAction.id) {
@@ -6394,7 +6395,6 @@ const AngularWorkflow = (defaultprops) => {
const conditionsModal = (
<Dialog
PaperComponent={PaperComponent}
aria-labelledby="draggable-dialog-title"
disableEnforceFocus={true}
hideBackdrop={true}
disableBackdropClick={true}
@@ -12138,45 +12138,6 @@ const parsedExecutionArgument = () => {
var draggingDisabled = false;
const codePopoutModal = !codeModalOpen ? null : (
<Draggable
onStart={(event) => {
console.log(event);
console.log(event.srcElement);
if (!dragging) {
console.log("START");
//setDragging(true);
}
}}
disabled={true}
onStop={(e) => {
console.log("STOP");
if (!dragging) {
return;
}
setDragging(false);
const newoffsetX =
parseInt(dragPosition.x) - parseInt(e.layerX - e.offsetX);
const newoffsetY =
parseInt(dragPosition.y) - parseInt(e.layerY - e.offsetY);
if (
newoffsetX <= 40 &&
newoffsetX >= -40 &&
newoffsetY <= 40 &&
newoffsetY >= -40
) {
console.log("SKIP X & Y");
return;
}
const newPosition = {
x: e.layerX - e.offsetX,
y: e.layerY - e.offsetY,
};
setDragPosition(newPosition);
}}
position={dragPosition}
>
<Dialog
PaperComponent={PaperComponent}
aria-labelledby="draggable-dialog-title"
@@ -12321,10 +12282,12 @@ const parsedExecutionArgument = () => {
<div>
<div
id="draggable-dialog-title"
style={{
fontSize: 24,
marginTop: "auto",
marginBottom: "auto",
cursor: "move",
}}
>
<b>{selectedResult.action.label}</b>
@@ -12437,7 +12400,6 @@ const parsedExecutionArgument = () => {
</div>
</div>
</Dialog>
</Draggable>
);
const newView = (