Skip to content

Commit

Permalink
enter subworkflow in right click menu for workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
afourmy committed Dec 15, 2019
1 parent 355cb7a commit 69b4d5c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions eNMS/static/workflowBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ function displayWorkflow(workflowData) {
$(".menu-entry ").hide();
$(`.${node.length == 36 ? "label" : "node"}-selection`).show();
selectedObject = nodes.get(node);
$(".workflow-selection").toggle(selectedObject.type == "workflow");
} else if (typeof edge !== "undefined" && !ends.has(node)) {
graph.selectEdges([edge]);
$(".menu-entry ").hide();
Expand Down Expand Up @@ -637,6 +638,7 @@ Object.assign(action, {
Skip: () => skipServices(),
"Zoom In": () => graph.zoom(0.2),
"Zoom Out": () => graph.zoom(-0.2),
"Enter Workflow": (node) => switchToWorkflow(`${currentPath}>${node.id}`),
Backward: () => switchToWorkflow(arrowHistory[arrowPointer - 1], "left"),
Forward: () => switchToWorkflow(arrowHistory[arrowPointer + 1], "right"),
Upward: () => {
Expand Down
3 changes: 3 additions & 0 deletions eNMS/templates/pages/workflow_builder.html
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,9 @@
<li class="menu-entry node-selection">
<a tabindex="-1" href="#">Results</a>
</li>
<li class="menu-entry node-selection workflow-selection">
<a tabindex="-1" href="#">Enter Workflow</a>
</li>
<li class="menu-entry divider node-selection">&nbsp</li>
<li class="menu-entry node-selection"><a tabindex="-1" href="#">Run</a></li>
<li class="menu-entry node-selection">
Expand Down

0 comments on commit 69b4d5c

Please sign in to comment.