mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 01:17:37 -02:30
Merge pull request #4512 from jlmitch5/projBranchFix
clear out branch/prompt on jt form when project changes Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
@@ -82,6 +82,11 @@ export default
|
|||||||
|
|
||||||
$scope.$watch('project', function (newValue, oldValue) {
|
$scope.$watch('project', function (newValue, oldValue) {
|
||||||
if (newValue !== oldValue) {
|
if (newValue !== oldValue) {
|
||||||
|
if (oldValue) {
|
||||||
|
$scope.scm_branch = null;
|
||||||
|
$scope.ask_scm_branch_on_launch = false;
|
||||||
|
}
|
||||||
|
|
||||||
var url;
|
var url;
|
||||||
if ($scope.playbook) {
|
if ($scope.playbook) {
|
||||||
$scope.playbook_options = [$scope.playbook];
|
$scope.playbook_options = [$scope.playbook];
|
||||||
|
|||||||
Reference in New Issue
Block a user