未验证 提交 27e36aa3 编写于 作者: X xingchun-chen 提交者: GitHub

Merge pull request #4571 from break60/dev

[fixbug-4570][ui] When deleting a workflow connection, all connections disappear
...@@ -627,6 +627,7 @@ JSP.prototype.saveStore = function () { ...@@ -627,6 +627,7 @@ JSP.prototype.saveStore = function () {
tasks.push(tasksParam) tasks.push(tasksParam)
} }
}) })
if (store.state.dag.connects.length === this.JspInstance.getConnections().length) { if (store.state.dag.connects.length === this.JspInstance.getConnections().length) {
_.map(store.state.dag.connects, u => { _.map(store.state.dag.connects, u => {
connects.push({ connects.push({
...@@ -658,6 +659,14 @@ JSP.prototype.saveStore = function () { ...@@ -658,6 +659,14 @@ JSP.prototype.saveStore = function () {
label: v._jsPlumb.overlays.label.canvas.innerText label: v._jsPlumb.overlays.label.canvas.innerText
}) })
}) })
} else if (store.state.dag.connects.length > this.JspInstance.getConnections().length) {
_.map(this.JspInstance.getConnections(), v => {
connects.push({
endPointSourceId: v.sourceId,
endPointTargetId: v.targetId,
label: v._jsPlumb.overlays.label.canvas.innerText
})
})
} }
_.map(tasksAll(), v => { _.map(tasksAll(), v => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册