1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 08:21:15 +03:00

Merge pull request #1925 from mabashian/1902-root-edge-type

Fixed error changing edge type of a previous root node
This commit is contained in:
Michael Abashian 2018-05-24 16:28:31 -04:00 committed by GitHub
commit 6f868a7bca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -252,8 +252,7 @@ export default ['$scope', 'WorkflowService', 'GetBasePath', 'TemplatesService',
}
}
if ((params.node.originalParentId && params.parentId !== params.node.originalParentId) || params.node.originalEdge !== params.node.edgeType) {//beep
if (params.node.originalParentId && (params.parentId !== params.node.originalParentId || params.node.originalEdge !== params.node.edgeType)) {
let parentIsDeleted = false;
_.forEach($scope.treeData.data.deletedNodes, function(deletedNode) {
@ -977,6 +976,10 @@ export default ['$scope', 'WorkflowService', 'GetBasePath', 'TemplatesService',
$scope.templateManuallySelected = function(selectedTemplate) {
if (surveyQuestionWatcher) {
surveyQuestionWatcher();
}
if (selectedTemplate.type === "job_template") {
let jobTemplate = new JobTemplate();