mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -03:30
Disable checkbox while job is running in project and inventory source lists (#11841)
This commit is contained in:
parent
123a3a22c9
commit
4c9d028a35
@ -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`}>
|
||||
|
||||
@ -172,6 +172,7 @@ function ProjectListItem({
|
||||
rowIndex,
|
||||
isSelected,
|
||||
onSelect,
|
||||
disable: isJobRunning(job?.status),
|
||||
}}
|
||||
dataLabel={t`Selected`}
|
||||
/>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user