Fix download button #208

Merged
michellejli77 merged 9 commits from mli6-fix-item-download into main 2023-03-20 22:13:52 +00:00
michellejli77 commented 2023-03-20 19:57:53 +00:00 (Migrated from github.com)

Description

Previously, the download button would download the same data regardless of what page the user is on. The download button on the active page should only download active items into a csv and same for the archived page.

Closes #207

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
# Description Previously, the download button would download the same data regardless of what page the user is on. The download button on the active page should only download active items into a csv and same for the archived page. Closes #207 ## Type of change <!-- Please delete options that are not relevant. --> - [x] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] This change requires a documentation update
hdavidethan (Migrated from github.com) approved these changes 2023-03-20 20:20:48 +00:00
hdavidethan (Migrated from github.com) left a comment

Other than the part that can more concise, everything looks good!

Other than the part that can more concise, everything looks good!
@ -56,7 +56,7 @@ const TableWidget = (props: {
<div>
hdavidethan (Migrated from github.com) commented 2023-03-20 20:19:31 +00:00

Can simplify to

<DownloadDataButton onlyArchived={props.isArchivedItems} />
Can simplify to ``` <DownloadDataButton onlyArchived={props.isArchivedItems} /> ```
michellejli77 (Migrated from github.com) reviewed 2023-03-20 20:21:37 +00:00
@ -56,7 +56,7 @@ const TableWidget = (props: {
<div>
michellejli77 (Migrated from github.com) commented 2023-03-20 20:21:36 +00:00

o so true

o so true
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ScottyLabs/lost-and-found!208
No description provided.