mirror of
https://github.com/ansible/awx.git
synced 2026-02-22 13:36:02 -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:
@@ -839,6 +839,10 @@ export default ['$scope', 'TemplatesService',
|
|||||||
$scope.cancelLinkForm();
|
$scope.cancelLinkForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($scope.nodeConfig && $scope.nodeConfig.nodeId === nodeId) {
|
||||||
|
$scope.cancelNodeForm();
|
||||||
|
}
|
||||||
|
|
||||||
// Remove the node from the array
|
// Remove the node from the array
|
||||||
for( let i = $scope.graphState.arrayOfNodesForChart.length; i--; ){
|
for( let i = $scope.graphState.arrayOfNodesForChart.length; i--; ){
|
||||||
if ($scope.graphState.arrayOfNodesForChart[i].id === nodeId) {
|
if ($scope.graphState.arrayOfNodesForChart[i].id === nodeId) {
|
||||||
|
|||||||
Reference in New Issue
Block a user