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:
softwarefactory-project-zuul[bot]
2019-08-19 20:52:59 +00:00
committed by GitHub

View File

@@ -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];