mirror of
https://github.com/ansible/awx.git
synced 2026-03-13 23:17:32 -02:30
Cancel node form when user deletes node being edited
This commit is contained in:
@@ -817,6 +817,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) {
|
||||
|
||||
Reference in New Issue
Block a user