mirror of
https://github.com/ansible/awx.git
synced 2026-03-11 14:39:30 -02:30
fixed playbooks from not displaying on type-completed project
This commit is contained in:
@@ -478,13 +478,24 @@ export function JobTemplatesAdd($filter, $scope, $rootScope, $compile, $location
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
// $scope.selectPlaybookUnregister = $scope.$watch('project_name', function (newval, oldval) {
|
||||||
|
// selectPlaybook(oldval, newval);
|
||||||
|
// checkSCMStatus(oldval, newval);
|
||||||
|
// });
|
||||||
|
|
||||||
// Register a watcher on project_name
|
// Register a watcher on project_name
|
||||||
if ($scope.selectPlaybookUnregister) {
|
if ($scope.selectPlaybookUnregister) {
|
||||||
$scope.selectPlaybookUnregister();
|
$scope.selectPlaybookUnregister();
|
||||||
}
|
}
|
||||||
$scope.selectPlaybookUnregister = $scope.$watch('project_name', function (newval, oldval) {
|
$scope.selectPlaybookUnregister = $scope.$watch('project', function (newValue, oldValue) {
|
||||||
selectPlaybook(oldval, newval);
|
if (newValue !== oldValue) {
|
||||||
checkSCMStatus(oldval, newval);
|
if (!Empty(oldValue)) {
|
||||||
|
$scope.playbook = null;
|
||||||
|
}
|
||||||
|
selectPlaybook(oldValue, newValue);
|
||||||
|
checkSCMStatus();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
LookUpInit({
|
LookUpInit({
|
||||||
|
|||||||
Reference in New Issue
Block a user