-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
kirkkwang
force-pushed
the
i774-download-btn
branch
from
September 12, 2023 00:31
e56aab0
to
6c5f784
Compare
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.
kirkkwang
force-pushed
the
i774-download-btn
branch
from
September 12, 2023 02:08
6c5f784
to
b611146
Compare
ShanaLMoore
commented
Sep 12, 2023
ShanaLMoore
commented
Sep 12, 2023
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.
This reverts commit 2e6beda.
laritakr
approved these changes
Sep 12, 2023
jeremyf
pushed a commit
to samvera/hyku
that referenced
this pull request
Dec 19, 2023
Which were resolved via the following PRs: - scientist-softserv/palni-palci#768 - scientist-softserv/palni-palci#786 - scientist-softserv/palni-palci#790 - scientist-softserv/palni-palci#807 - scientist-softserv/palni-palci#850 - scientist-softserv/palni-palci#781 - scientist-softserv/palni-palci#787 - scientist-softserv/palni-palci#795 - scientist-softserv/palni-palci#788 - scientist-softserv/palni-palci#793 - scientist-softserv/palni-palci#782 - scientist-softserv/palni-palci#798 - scientist-softserv/palni-palci#866 - scientist-softserv/palni-palci#846 - scientist-softserv/palni-palci#849 - scientist-softserv/palni-palci#868 - scientist-softserv/palni-palci#875 - scientist-softserv/palni-palci#884 - scientist-softserv/palni-palci#876 - scientist-softserv/palni-palci#952 Contribute back the following features: - scientist-softserv/palni-palci#125 - scientist-softserv/palni-palci#740 - scientist-softserv/palni-palci#742 - scientist-softserv/palni-palci#746 - scientist-softserv/palni-palci#772 - scientist-softserv/palni-palci#773 - scientist-softserv/palni-palci#774 - scientist-softserv/palni-palci#776 - scientist-softserv/palni-palci#778 - scientist-softserv/palni-palci#839 - scientist-softserv/palni-palci#840 - scientist-softserv/palni-palci#864 Co-authored-by: Shana Moore <shana@scientist.com> Co-authored-by: Kirk Wang <kirk.wang@scientist.com>
This was referenced Dec 19, 2023
This was referenced Jan 8, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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