Skip to content

Commit

Permalink
Merge pull request #879 from loculus-project/303-website-deletehide-e…
Browse files Browse the repository at this point in the history
…asy-testing-button

feat(website): only show "Load Example Data" button for dummy-organism
  • Loading branch information
bh-ethz authored Feb 5, 2024
2 parents 6206264 + 427f602 commit d1db4d5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions website/src/components/DataUploadForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,11 @@ const InnerDataUploadForm = ({
)}

<div className='flex gap-4'>
<button type='button' className='px-4 py-2 btn normal-case ' onClick={handleLoadExampleData}>
Load Example Data
</button>
{organism.startsWith('dummy-organism') && (
<button type='button' className='px-4 py-2 btn normal-case ' onClick={handleLoadExampleData}>
Load Example Data
</button>
)}

<button
className='px-4 py-2 btn normal-case w-1/5'
Expand Down

0 comments on commit d1db4d5

Please sign in to comment.