mirror of
https://github.com/ansible/awx.git
synced 2026-01-18 05:01:19 -03:30
clear out branch/prompt on jt form when project changes
This commit is contained in:
parent
b28655181d
commit
ef26f6a4c2
@ -82,6 +82,11 @@ export default
|
||||
|
||||
$scope.$watch('project', function (newValue, oldValue) {
|
||||
if (newValue !== oldValue) {
|
||||
if (oldValue) {
|
||||
$scope.scm_branch = null;
|
||||
$scope.ask_scm_branch_on_launch = false;
|
||||
}
|
||||
|
||||
var url;
|
||||
if ($scope.playbook) {
|
||||
$scope.playbook_options = [$scope.playbook];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user