clear out branch/prompt on jt form when project changes

This commit is contained in:
John Mitchell 2019-08-19 14:16:01 -04:00
parent b28655181d
commit ef26f6a4c2

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