Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/tapis-project/tapis-ui into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
nathandf committed Aug 28, 2024
2 parents 35c8967 + fd78d30 commit cf36ed3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/Jobs/_components/JobsToolbar/JobsToolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const JobsToolbar: React.FC<{ jobUuid: string }> = ({ jobUuid }) => {
};
// Check if the job is in a non-terminal state
const isCancelable =
job && !['FINISHED', 'FAILED'].includes(job.status ?? '');
job && !['FINISHED', 'FAILED', 'CANCELLED'].includes(job.status ?? '');

return (
<div id="file-operation-toolbar">
Expand All @@ -76,7 +76,7 @@ const JobsToolbar: React.FC<{ jobUuid: string }> = ({ jobUuid }) => {
<ToolbarButton
text="Cancel Job"
icon="trash"
disabled={false}
disabled={isCancelable ? false : true}
onClick={() => setModal('ConfirmModal')}
aria-label="cancelJob" // Updated aria-label to be more descriptive
/>
Expand Down

0 comments on commit cf36ed3

Please sign in to comment.