mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 10:30:03 -03:30
Merge pull request #6249 from jakemcdermott/5771-fix-read-only-display-of-playbooks
Show playbook field on JT when read-only Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
commit
bb144acee3
@ -238,6 +238,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/';
|
||||
@ -259,7 +264,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