mirror of
https://github.com/ansible/awx.git
synced 2026-03-07 11:41:08 -03:30
made playbooks that are similar across branches not clear out the form input
This commit is contained in:
@@ -490,9 +490,6 @@ export function JobTemplatesAdd($filter, $scope, $rootScope, $compile, $location
|
|||||||
}
|
}
|
||||||
$scope.selectPlaybookUnregister = $scope.$watch('project', function (newValue, oldValue) {
|
$scope.selectPlaybookUnregister = $scope.$watch('project', function (newValue, oldValue) {
|
||||||
if (newValue !== oldValue) {
|
if (newValue !== oldValue) {
|
||||||
if (!Empty(oldValue)) {
|
|
||||||
$scope.playbook = null;
|
|
||||||
}
|
|
||||||
selectPlaybook(oldValue, newValue);
|
selectPlaybook(oldValue, newValue);
|
||||||
checkSCMStatus();
|
checkSCMStatus();
|
||||||
}
|
}
|
||||||
@@ -827,9 +824,6 @@ export function JobTemplatesEdit($filter, $scope, $rootScope, $compile, $locatio
|
|||||||
}
|
}
|
||||||
$scope.watchProjectUnregister = $scope.$watch('project', function (newValue, oldValue) {
|
$scope.watchProjectUnregister = $scope.$watch('project', function (newValue, oldValue) {
|
||||||
if (newValue !== oldValue) {
|
if (newValue !== oldValue) {
|
||||||
if (!Empty(oldValue)) {
|
|
||||||
$scope.playbook = null;
|
|
||||||
}
|
|
||||||
getPlaybooks($scope.project);
|
getPlaybooks($scope.project);
|
||||||
checkSCMStatus();
|
checkSCMStatus();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user