From 0feeaf045336cdc9c2bcfcf6cc41f051427acc13 Mon Sep 17 00:00:00 2001 From: Keith Grant Date: Wed, 27 Jan 2021 09:26:19 -0800 Subject: [PATCH] fix select boxes in JobList --- awx/ui_next/src/components/JobList/JobList.jsx | 3 ++- awx/ui_next/src/components/JobList/JobListItem.jsx | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/awx/ui_next/src/components/JobList/JobList.jsx b/awx/ui_next/src/components/JobList/JobList.jsx index 0c2ab61a7c..f21e8bb15b 100644 --- a/awx/ui_next/src/components/JobList/JobList.jsx +++ b/awx/ui_next/src/components/JobList/JobList.jsx @@ -268,13 +268,14 @@ function JobList({ i18n, defaultParams, showTypeColumn = false }) { ]} /> )} - renderRow={job => ( + renderRow={(job, index) => ( handleSelect(job)} isSelected={selected.some(row => row.id === job.id)} + rowIndex={index} /> )} /> diff --git a/awx/ui_next/src/components/JobList/JobListItem.jsx b/awx/ui_next/src/components/JobList/JobListItem.jsx index a84b1b0ec5..6e2bff2bf4 100644 --- a/awx/ui_next/src/components/JobList/JobListItem.jsx +++ b/awx/ui_next/src/components/JobList/JobListItem.jsx @@ -51,8 +51,8 @@ function JobListItem({ rowIndex, isSelected, onSelect, - disable: false, }} + dataLabel={i18n._(t`Select`)} />