Fixed dragging stop issues
This commit is contained in:
@@ -10,6 +10,7 @@ import ReactJson from "react-json-view";
|
|||||||
import NestedMenuItem from "material-ui-nested-menu-item";
|
import NestedMenuItem from "material-ui-nested-menu-item";
|
||||||
import ReactMarkdown from "react-markdown";
|
import ReactMarkdown from "react-markdown";
|
||||||
import { useAlert } from "react-alert";
|
import { useAlert } from "react-alert";
|
||||||
|
import theme from '../theme';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
Zoom,
|
Zoom,
|
||||||
@@ -186,9 +187,9 @@ const AngularWorkflow = (props) => {
|
|||||||
const { globalUrl, isLoggedIn, isLoaded, userdata } = props;
|
const { globalUrl, isLoggedIn, isLoaded, userdata } = props;
|
||||||
const referenceUrl = globalUrl + "/api/v1/hooks/";
|
const referenceUrl = globalUrl + "/api/v1/hooks/";
|
||||||
const alert = useAlert()
|
const alert = useAlert()
|
||||||
const theme = useTheme();
|
|
||||||
const green = "#86c142";
|
const green = "#86c142";
|
||||||
const yellow = "#FECC00";
|
const yellow = "#FECC00";
|
||||||
|
//const theme = useTheme();
|
||||||
|
|
||||||
const [bodyWidth, bodyHeight] = useWindowSize();
|
const [bodyWidth, bodyHeight] = useWindowSize();
|
||||||
|
|
||||||
@@ -2761,7 +2762,6 @@ const AngularWorkflow = (props) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const onNodeAdded = (event) => {
|
const onNodeAdded = (event) => {
|
||||||
setLastSaved(false);
|
|
||||||
const node = event.target;
|
const node = event.target;
|
||||||
const nodedata = event.target.data();
|
const nodedata = event.target.data();
|
||||||
|
|
||||||
@@ -2771,10 +2771,13 @@ const AngularWorkflow = (props) => {
|
|||||||
console.log("Returning because node is not valid: ", nodedata)
|
console.log("Returning because node is not valid: ", nodedata)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
//parsedApp.data.finished = true;
|
|
||||||
|
|
||||||
//console.log("IS IT ADDED TO THE WORKFLOW?: ", nodedata)
|
|
||||||
|
// DONT MOVE THIS LINE RIGHT HERE v
|
||||||
|
setLastSaved(false)
|
||||||
|
// Dont move the line above. May break stuff.
|
||||||
|
|
||||||
|
|
||||||
if (node.isNode() && cy.nodes().size() === 1) {
|
if (node.isNode() && cy.nodes().size() === 1) {
|
||||||
workflow.start = node.data("id");
|
workflow.start = node.data("id");
|
||||||
nodedata.isStartNode = true;
|
nodedata.isStartNode = true;
|
||||||
@@ -3566,8 +3569,8 @@ const AngularWorkflow = (props) => {
|
|||||||
const onNodeHover = (event) => {
|
const onNodeHover = (event) => {
|
||||||
const nodedata = event.target.data();
|
const nodedata = event.target.data();
|
||||||
|
|
||||||
//console.log("NODE: ", nodedata)
|
|
||||||
if (nodedata.finished === false) {
|
if (nodedata.finished === false) {
|
||||||
|
console.log("NODE: ", nodedata)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -12310,7 +12313,7 @@ const AngularWorkflow = (props) => {
|
|||||||
<a
|
<a
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
href={"https://github.com/frikky/shuffle-apps"}
|
href={"https://github.com/shuffle/python-apps"}
|
||||||
style={{ textDecoration: "none", color: "#f86a3e" }}
|
style={{ textDecoration: "none", color: "#f86a3e" }}
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
@@ -12454,7 +12457,7 @@ const AngularWorkflow = (props) => {
|
|||||||
<a
|
<a
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
href={"https://github.com/frikky/shuffle-apps"}
|
href={"https://github.com/shuffle/python-apps"}
|
||||||
style={{ textDecoration: "none", color: "#f86a3e" }}
|
style={{ textDecoration: "none", color: "#f86a3e" }}
|
||||||
>
|
>
|
||||||
Check it out on Github!
|
Check it out on Github!
|
||||||
|
|||||||
Reference in New Issue
Block a user