mirror of
https://github.com/ansible/awx.git
synced 2026-01-16 04:10:44 -03:30
Show playbook field on JT when read-only
This commit is contained in:
parent
ecb7147614
commit
f8f6fff21e
@ -237,6 +237,11 @@ export default
|
||||
$scope.playbook_options = [$scope.playbook];
|
||||
}
|
||||
|
||||
if (!Empty($scope.project)) {
|
||||
// If a project exists, show its playbooks.
|
||||
$scope.allow_playbook_selection = true;
|
||||
}
|
||||
|
||||
if (!Empty($scope.project) && $scope.job_template_obj.summary_fields.user_capabilities.edit) {
|
||||
let promises = [];
|
||||
url = GetBasePath('projects') + $scope.project + '/playbooks/';
|
||||
@ -258,7 +263,6 @@ export default
|
||||
$scope.playbook_options.push($scope.playbook);
|
||||
}
|
||||
$scope.playbookNotFound = playbookNotFound;
|
||||
$scope.allow_playbook_selection = true;
|
||||
sync_playbook_select2();
|
||||
if ($scope.playbook) {
|
||||
jobTemplateLoadFinished();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user