Skip to content

Commit

Permalink
feat: remove the restriction of editing tpt (#1721)
Browse files Browse the repository at this point in the history
Co-authored-by: Xiao Peng <[email protected]>
  • Loading branch information
xiaopeng0202 and Xiao Peng authored Nov 14, 2024
1 parent 55c60ad commit 57508b2
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 57508b2

Please sign in to comment.