add success z-index

This commit is contained in:
Mutasem 2021-10-29 09:38:04 +02:00
parent 3602b117d1
commit 0d704d1975
2 changed files with 15 additions and 0 deletions

View file

@ -456,6 +456,10 @@ export default mixins(externalHooks, nodeBase, nodeHelpers, workflowHelpers).ext
transition: stroke .1s ease-in-out; transition: stroke .1s ease-in-out;
} }
.jtk-connector.success {
z-index: 4;
}
/** node endpoints */ /** node endpoints */
.jtk-endpoint { .jtk-endpoint {
z-index:5; z-index:5;

View file

@ -2034,10 +2034,21 @@ export default mixins(
conn.setPaintStyle(CONNECTOR_PAINT_STYLE_DEFAULT); conn.setPaintStyle(CONNECTOR_PAINT_STYLE_DEFAULT);
conn.removeOverlay(OVERLAY_RUN_ITEMS_ID); conn.removeOverlay(OVERLAY_RUN_ITEMS_ID);
showOrHideMidpointArrow(conn); showOrHideMidpointArrow(conn);
// @ts-ignore
if (conn.canvas) {
// @ts-ignore
(conn.canvas as Element).classList.remove('success');
}
return; return;
} }
conn.setPaintStyle(CONNECTOR_PAINT_STYLE_SUCCESS); conn.setPaintStyle(CONNECTOR_PAINT_STYLE_SUCCESS);
// @ts-ignore
if (conn.canvas) {
// @ts-ignore
(conn.canvas as Element).classList.add('success');
}
if (conn.getOverlay(OVERLAY_RUN_ITEMS_ID)) { if (conn.getOverlay(OVERLAY_RUN_ITEMS_ID)) {
conn.removeOverlay(OVERLAY_RUN_ITEMS_ID); conn.removeOverlay(OVERLAY_RUN_ITEMS_ID);