Skip to content

Commit

Permalink
feat: disable remove option for accepted activities in activities lis…
Browse files Browse the repository at this point in the history
…t view
  • Loading branch information
ssubijana committed Oct 10, 2023
1 parent e323509 commit b0203ad
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,13 @@ export const ActivitiesListTable = ({
>
{t('actions.edit')}
</Button>
<RemoveActivityButton activity={activity} onDeleted={onDeleteActivity} redNoIcon={true} />
{activity.approval.state !== 'ACCEPTED' && (
<RemoveActivityButton
activity={activity}
onDeleted={onDeleteActivity}
redNoIcon={true}
/>
)}
</Fragment>
)
}
Expand Down

0 comments on commit b0203ad

Please sign in to comment.