Skip to content

Commit

Permalink
Merge pull request #1497 from jschuler/mtv-1934
Browse files Browse the repository at this point in the history
MTV-1934: Disallow archiving running plan
  • Loading branch information
metalice authored Feb 24, 2025
2 parents c4ffa78 + 937f3f8 commit c9f9f14
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ export const PlanActionsDropdownItems = ({ data }: PlanActionsDropdownItemsProps
value={4}
key="archive"
isDisabled={
!data?.permissions?.canDelete || [PlanPhase.Archived, PlanPhase.Archiving].includes(phase)
!data?.permissions?.canDelete ||
[PlanPhase.Archived, PlanPhase.Archiving].includes(phase) ||
isPlanExecuting(plan)
}
onClick={onClickArchive}
>
Expand Down

0 comments on commit c9f9f14

Please sign in to comment.