mirror of https://github.com/apache/nifi.git
NIFI-2707: - Ensuring that connections are always sorted accordingly to their zIndex. This preserves the 'bring to front' settings.
This closes #1023. Signed-off-by: Bryan Bende <bbende@apache.org>
This commit is contained in:
parent
b304f70f3e
commit
5198e70d14
|
@ -1450,9 +1450,7 @@ nf.Actions = (function () {
|
|||
dataType: 'json',
|
||||
contentType: 'application/json'
|
||||
}).done(function (response) {
|
||||
// update the edge's zIndex
|
||||
nf.Connection.set(response);
|
||||
nf.Connection.reorder();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1579,7 +1579,7 @@ nf.Connection = (function () {
|
|||
selection.call(updateConnections, {
|
||||
'updatePath': true,
|
||||
'updateLabel': false
|
||||
});
|
||||
}).call(sort);
|
||||
},
|
||||
|
||||
/**
|
||||
|
@ -1634,17 +1634,10 @@ nf.Connection = (function () {
|
|||
'updatePath': true,
|
||||
'updateLabel': true,
|
||||
'transition': transition
|
||||
});
|
||||
}).call(sort);
|
||||
selection.exit().call(removeConnections);
|
||||
},
|
||||
|
||||
/**
|
||||
* Reorders the connections based on their current z index.
|
||||
*/
|
||||
reorder: function () {
|
||||
d3.selectAll('g.connection').call(sort);
|
||||
},
|
||||
|
||||
/**
|
||||
* Refreshes the connection in the UI.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue