1
0
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:
mabashian 2019-02-07 10:47:21 -05:00
parent d99c9c8dce
commit 123f646cea

View File

@ -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) {