mirror of
https://github.com/ansible/awx.git
synced 2026-05-24 09:07:45 -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();
|
$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