Skip to content

Commit

Permalink
fix bug display of newly created workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
afourmy committed Dec 15, 2019
1 parent 69b4d5c commit acbea93
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/base/release_notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ Version 3.18.1
- Improve display of filtering forms
- Reduce size of the service and workflow edit panel for low-resolution screens
- Add "success" key before result postprocessing
- Remove "Enter subworfklow button", add button to switch to parent workflow
-
- Remove "Enter subworfklow" button in toolbar and add the same button in right-click menu
- Add button to switch to parent workflow

Version 3.18
------------
Expand Down
7 changes: 5 additions & 2 deletions eNMS/static/workflowBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ function processWorkflowData(instance, id) {
$("#current-workflow")
.val(instance.id)
.trigger("change");
displayWorkflow({ workflow: instance, runtimes: [] });
displayWorkflow({ service: instance, runtimes: [] });
}
} else {
call(
Expand Down Expand Up @@ -642,7 +642,10 @@ Object.assign(action, {
Backward: () => switchToWorkflow(arrowHistory[arrowPointer - 1], "left"),
Forward: () => switchToWorkflow(arrowHistory[arrowPointer + 1], "right"),
Upward: () => {
parentPath = currentPath.split(">").slice(0, -1).join(">");
const parentPath = currentPath
.split(">")
.slice(0, -1)
.join(">");
if (parentPath) switchToWorkflow(parentPath);
},
});
Expand Down

0 comments on commit acbea93

Please sign in to comment.