Skip to content

Commit

Permalink
Disable checkbox while job is running in project and inventory source…
Browse files Browse the repository at this point in the history
… lists (ansible#11841)
  • Loading branch information
marshmalien committed Mar 8, 2022
1 parent 123a3a2 commit 4c9d028
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)`
Expand Down Expand Up @@ -64,6 +65,7 @@ function InventorySourceListItem({
rowIndex,
isSelected,
onSelect,
disable: isJobRunning(source.status),
}}
/>
<TdBreakWord dataLabel={t`Name`}>
Expand Down
1 change: 1 addition & 0 deletions awx/ui/src/screens/Project/ProjectList/ProjectListItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ function ProjectListItem({
rowIndex,
isSelected,
onSelect,
disable: isJobRunning(job?.status),
}}
dataLabel={t`Selected`}
/>
Expand Down

0 comments on commit 4c9d028

Please sign in to comment.