Disable checkbox while job is running in project and inventory source lists (#11841)

This commit is contained in:
Marliana Lara 2022-03-08 13:04:35 -05:00 committed by GitHub
parent 123a3a22c9
commit 4c9d028a35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -13,6 +13,7 @@ import { ActionsTd, ActionItem, TdBreakWord } from 'components/PaginatedTable';
import StatusLabel from 'components/StatusLabel';
import JobCancelButton from 'components/JobCancelButton';
import { formatDateString } from 'util/dates';
import { isJobRunning } from 'util/jobs';
import InventorySourceSyncButton from '../shared/InventorySourceSyncButton';
const ExclamationTriangleIcon = styled(PFExclamationTriangleIcon)`
@ -64,6 +65,7 @@ function InventorySourceListItem({
rowIndex,
isSelected,
onSelect,
disable: isJobRunning(source.status),
}}
/>
<TdBreakWord dataLabel={t`Name`}>

View File

@ -172,6 +172,7 @@ function ProjectListItem({
rowIndex,
isSelected,
onSelect,
disable: isJobRunning(job?.status),
}}
dataLabel={t`Selected`}
/>