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

Show "online access" label for all digital materials #682

Conversation

Adamik10
Copy link
Contributor

Link to issue

https://reload.atlassian.net/browse/DDFLSBP-213

Description

This PR introduces a fix so that all digital reservations get the correct label, instead of the physical reservation address.

Screenshot of the result

n/a

Additional comments or questions

n/a

Comment on lines 84 to 88
label={
!isDigital
? [pickupLibrary, pickupNumber || ""]
: [t("reservationListDigitalPickupText")]
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess my speculations here turned out to be true 😅

Copy link
Contributor

@JacobArrow JacobArrow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a very nice solution and it is much easyer to understand what is happening.
Great job 🔥

So instead of checking whether a material isn't digital (!isDigital) we
check whether it is. Because it makes more logical sense.
@Adamik10 Adamik10 merged commit aa29c1d into danskernesdigitalebibliotek:develop Nov 16, 2023
10 checks passed
@Adamik10 Adamik10 deleted the fix/digital-reservations-label branch November 16, 2023 09:00
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.

5 participants