mirror of
https://github.com/ansible/awx.git
synced 2026-02-25 23:16:01 -03:30
Add relaunch component to Completed Jobs list
This commit is contained in:
@@ -12,7 +12,7 @@ const atRelaunch = {
|
||||
function atRelaunchCtrl (RelaunchJob, InitiatePlaybookRun, strings, $scope) {
|
||||
const vm = this;
|
||||
const scope = $scope.$parent;
|
||||
const { job } = $scope.$parent;
|
||||
const job = _.get(scope, 'job') || _.get(scope, 'completed_job');
|
||||
|
||||
vm.$onInit = () => {
|
||||
vm.showRelaunch = !(job.type === 'system_job') && job.summary_fields.user_capabilities.start;
|
||||
|
||||
Reference in New Issue
Block a user