From 4033e0f218c6bd1d2d07e9ddbb05aa123e406eb7 Mon Sep 17 00:00:00 2001 From: Jake McDermott Date: Mon, 14 Dec 2020 11:25:38 -0500 Subject: [PATCH] Align display types for job list and details --- awx/ui_next/src/screens/Job/JobDetail/JobDetail.jsx | 11 ++++++++++- .../src/screens/Job/JobDetail/JobDetail.test.jsx | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/awx/ui_next/src/screens/Job/JobDetail/JobDetail.jsx b/awx/ui_next/src/screens/Job/JobDetail/JobDetail.jsx index 5d82bcbe23..9963fbbba8 100644 --- a/awx/ui_next/src/screens/Job/JobDetail/JobDetail.jsx +++ b/awx/ui_next/src/screens/Job/JobDetail/JobDetail.jsx @@ -92,6 +92,15 @@ function JobDetail({ job, i18n }) { const [errorMsg, setErrorMsg] = useState(); const history = useHistory(); + const jobTypes = { + project_update: i18n._(t`Source Control Update`), + inventory_update: i18n._(t`Inventory Sync`), + job: i18n._(t`Playbook Run`), + ad_hoc_command: i18n._(t`Command`), + management_job: i18n._(t`Management Job`), + workflow_job: i18n._(t`Workflow Job`), + }; + const { value: launchedByValue, link: launchedByLink } = getLaunchedByDetails(job) || {}; @@ -181,7 +190,7 @@ function JobDetail({ job, i18n }) { } /> )} - + ', () => { assertDetail('Started', '8/8/2019, 7:24:18 PM'); assertDetail('Finished', '8/8/2019, 7:24:50 PM'); assertDetail('Job Template', mockJobData.summary_fields.job_template.name); - assertDetail('Job Type', 'Run'); + assertDetail('Job Type', 'Playbook Run'); assertDetail('Launched By', mockJobData.summary_fields.created_by.username); assertDetail('Inventory', mockJobData.summary_fields.inventory.name); assertDetail(