Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🎁 I774 add download btn to show page #782

Merged
merged 5 commits into from
Sep 12, 2023
Merged

Conversation

ShanaLMoore
Copy link
Contributor

@ShanaLMoore ShanaLMoore commented Sep 11, 2023

Story

This PR adds the download btn to the show page. It also hides the ability to download the PDF from within the PDF.js.

Refs #774

Expected Behavior Before Changes

Expected Behavior After Changes

image

Hide the PDF.js download button. We are creating an external button instead for more control.
…in PDF.js

In this commit we are creating a download PDF button with the same permissions as the download action button. This button will be placed above the citations button, underneath the viewer.
This commit will match the PDF download button logic with the actions
download button logic.  Also this will move the Flipflop check outside
of the download_pdf partial (in a helper) to the render call on the
show.html.erb so we don't have an empty div if it fails that check.  We
now pass in the file_set_id instead of doing the logic in the partial as
well to keep the partial cleaner.
@ShanaLMoore ShanaLMoore marked this pull request as ready for review September 12, 2023 14:41
@ShanaLMoore ShanaLMoore marked this pull request as draft September 12, 2023 14:42
@ShanaLMoore ShanaLMoore changed the title I774 add download btn to show page 🎁 I774 add download btn to show page Sep 12, 2023
In this commit we are refactoring to clean up and extract logic that previously lived in the views.
@ShanaLMoore ShanaLMoore marked this pull request as ready for review September 12, 2023 16:06
@ShanaLMoore ShanaLMoore merged commit d9bdb4f into main Sep 12, 2023
7 checks passed
@ShanaLMoore ShanaLMoore deleted the i774-download-btn branch September 12, 2023 17:57
jeremyf pushed a commit to samvera/hyku that referenced this pull request Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants