Made popout window for previous response moveable
This commit is contained in:
@@ -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"}'
|
#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
|
#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/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"
|
#curl http://localhost:5001/api/v1/files/e19cffe4-e2da-47e9-809e-904f5cb03687 -H "Authorization: Bearer db0373c6-1083-4dec-a05d-3ba73f02ccd4"
|
||||||
|
|||||||
@@ -2237,8 +2237,9 @@ const AngularWorkflow = (defaultprops) => {
|
|||||||
setLastSaved(false);
|
setLastSaved(false);
|
||||||
parentNode.data("isStartNode", true);
|
parentNode.data("isStartNode", true);
|
||||||
}
|
}
|
||||||
|
|
||||||
//event.target.unselect();
|
//event.target.unselect();
|
||||||
|
setRightSideBarOpen(true);
|
||||||
return
|
return
|
||||||
} else if (data.buttonType === "copy") {
|
} else if (data.buttonType === "copy") {
|
||||||
console.log("COPY!");
|
console.log("COPY!");
|
||||||
@@ -5680,7 +5681,7 @@ const AngularWorkflow = (defaultprops) => {
|
|||||||
newSelectedAction.errors = [];
|
newSelectedAction.errors = [];
|
||||||
newSelectedAction.isValid = true;
|
newSelectedAction.isValid = true;
|
||||||
newSelectedAction.is_valid = true;
|
newSelectedAction.is_valid = true;
|
||||||
console.log(newSelectedAction)
|
//console.log(newSelectedAction)
|
||||||
|
|
||||||
// Simmple action swap autocompleter
|
// Simmple action swap autocompleter
|
||||||
if (selectedAction.parameters !== undefined && newSelectedAction.parameters !== undefined && selectedAction.id === newSelectedAction.id) {
|
if (selectedAction.parameters !== undefined && newSelectedAction.parameters !== undefined && selectedAction.id === newSelectedAction.id) {
|
||||||
@@ -6394,7 +6395,6 @@ const AngularWorkflow = (defaultprops) => {
|
|||||||
const conditionsModal = (
|
const conditionsModal = (
|
||||||
<Dialog
|
<Dialog
|
||||||
PaperComponent={PaperComponent}
|
PaperComponent={PaperComponent}
|
||||||
aria-labelledby="draggable-dialog-title"
|
|
||||||
disableEnforceFocus={true}
|
disableEnforceFocus={true}
|
||||||
hideBackdrop={true}
|
hideBackdrop={true}
|
||||||
disableBackdropClick={true}
|
disableBackdropClick={true}
|
||||||
@@ -12138,45 +12138,6 @@ const parsedExecutionArgument = () => {
|
|||||||
|
|
||||||
var draggingDisabled = false;
|
var draggingDisabled = false;
|
||||||
const codePopoutModal = !codeModalOpen ? null : (
|
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
|
<Dialog
|
||||||
PaperComponent={PaperComponent}
|
PaperComponent={PaperComponent}
|
||||||
aria-labelledby="draggable-dialog-title"
|
aria-labelledby="draggable-dialog-title"
|
||||||
@@ -12321,10 +12282,12 @@ const parsedExecutionArgument = () => {
|
|||||||
|
|
||||||
<div>
|
<div>
|
||||||
<div
|
<div
|
||||||
|
id="draggable-dialog-title"
|
||||||
style={{
|
style={{
|
||||||
fontSize: 24,
|
fontSize: 24,
|
||||||
marginTop: "auto",
|
marginTop: "auto",
|
||||||
marginBottom: "auto",
|
marginBottom: "auto",
|
||||||
|
cursor: "move",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<b>{selectedResult.action.label}</b>
|
<b>{selectedResult.action.label}</b>
|
||||||
@@ -12437,7 +12400,6 @@ const parsedExecutionArgument = () => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</Dialog>
|
</Dialog>
|
||||||
</Draggable>
|
|
||||||
);
|
);
|
||||||
|
|
||||||
const newView = (
|
const newView = (
|
||||||
|
|||||||
Reference in New Issue
Block a user