mirror of
https://github.com/ansible/awx.git
synced 2024-11-01 08:21:15 +03:00
Cancel node form when user deletes node being edited
This commit is contained in:
parent
d99c9c8dce
commit
123f646cea
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user