Skip to content

Commit

Permalink
Merge branch 'main' into feat/1700-parent-tree-calculation-part-1
Browse files Browse the repository at this point in the history
  • Loading branch information
mgaseta authored Nov 15, 2024
2 parents 54cc20b + 57508b2 commit b1b6d12
Showing 1 changed file with 9 additions and 16 deletions.
25 changes: 9 additions & 16 deletions frontend/src/views/Seedlot/SeedlotReview/SeedlotReviewContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -544,22 +544,15 @@ const SeedlotReviewContent = () => {
}
/>

{
// Seedlots that have 'CUS' or 'UPT' as source should not be edited.
seedlotData?.seedlotSource.seedlotSourceCode === 'TPT'
? (
<Button
kind="secondary"
size="md"
className="edit-save-btn"
renderIcon={isReadMode ? Edit : Save}
onClick={handleEditSaveBtn}
>
{isReadMode ? 'Edit seedlot' : 'Save edit'}
</Button>
)
: null
}
<Button
kind="secondary"
size="md"
className="edit-save-btn"
renderIcon={isReadMode ? Edit : Save}
onClick={handleEditSaveBtn}
>
{isReadMode ? 'Edit seedlot' : 'Save edit'}
</Button>

<Breadcrumbs
crumbs={
Expand Down

0 comments on commit b1b6d12

Please sign in to comment.