mirror of
https://github.com/ansible/awx.git
synced 2026-05-20 07:17:40 -02:30
Changed 'Cleanup Job' to name of cleanup job ran
on the modal that prompts the user for number of days of data to keep, I changed the title of the modal to say the name of the job being run.
This commit is contained in:
@@ -136,12 +136,12 @@ angular.module('ConfigureTowerHelper', [ 'Utilities', 'RestServices', 'Schedules
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
scope.submitJob = function (id) {
|
scope.submitJob = function (id, name) {
|
||||||
Wait('start');
|
Wait('start');
|
||||||
defaultUrl = GetBasePath('system_job_templates')+id+'/launch/';
|
defaultUrl = GetBasePath('system_job_templates')+id+'/launch/';
|
||||||
CreateDialog({
|
CreateDialog({
|
||||||
id: 'prompt-for-days' ,
|
id: 'prompt-for-days' ,
|
||||||
title: "Cleanup Job",
|
title: name,
|
||||||
scope: scope,
|
scope: scope,
|
||||||
width: 500,
|
width: 500,
|
||||||
height: 300,
|
height: 300,
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ angular.module('ConfigureTowerJobsListDefinition', [])
|
|||||||
submit: {
|
submit: {
|
||||||
label: 'Launch',
|
label: 'Launch',
|
||||||
mode: 'all',
|
mode: 'all',
|
||||||
ngClick: 'submitJob(configure_job.id)',
|
ngClick: 'submitJob(configure_job.id, configure_job.name)',
|
||||||
awToolTip: 'Start a job using this template',
|
awToolTip: 'Start a job using this template',
|
||||||
dataPlacement: 'top'
|
dataPlacement: 'top'
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user