mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 02:19:58 -03:30
Merge pull request #3183 from mabashian/3018-wf-save
Cancel node form when user deletes node being edited Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
This commit is contained in:
commit
1fbcd1b10b
@ -839,6 +839,10 @@ export default ['$scope', 'TemplatesService',
|
||||
$scope.cancelLinkForm();
|
||||
}
|
||||
|
||||
if ($scope.nodeConfig && $scope.nodeConfig.nodeId === nodeId) {
|
||||
$scope.cancelNodeForm();
|
||||
}
|
||||
|
||||
// Remove the node from the array
|
||||
for( let i = $scope.graphState.arrayOfNodesForChart.length; i--; ){
|
||||
if ($scope.graphState.arrayOfNodesForChart[i].id === nodeId) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user