mirror of
https://github.com/ansible/awx.git
synced 2024-11-01 16:51:11 +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:
commit
6f868a7bca
@ -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;
|
let parentIsDeleted = false;
|
||||||
|
|
||||||
_.forEach($scope.treeData.data.deletedNodes, function(deletedNode) {
|
_.forEach($scope.treeData.data.deletedNodes, function(deletedNode) {
|
||||||
@ -977,6 +976,10 @@ export default ['$scope', 'WorkflowService', 'GetBasePath', 'TemplatesService',
|
|||||||
|
|
||||||
$scope.templateManuallySelected = function(selectedTemplate) {
|
$scope.templateManuallySelected = function(selectedTemplate) {
|
||||||
|
|
||||||
|
if (surveyQuestionWatcher) {
|
||||||
|
surveyQuestionWatcher();
|
||||||
|
}
|
||||||
|
|
||||||
if (selectedTemplate.type === "job_template") {
|
if (selectedTemplate.type === "job_template") {
|
||||||
let jobTemplate = new JobTemplate();
|
let jobTemplate = new JobTemplate();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user