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

provide default PermissionBadge presenter behavior when nil #5807

Merged
merged 1 commit into from
Aug 23, 2022

Conversation

no-reply
Copy link
Contributor

if visibility wasn't indexed for any item, the PermissionBadge presenter will
cause any relevant page not to render.

this fixes that issue by providing a reasonable default display badge in the
case that we can't identify the visibility from the indexed data.

@samvera/hyrax-code-reviewers

cjcolvar
cjcolvar previously approved these changes Aug 23, 2022
Copy link
Member

@cjcolvar cjcolvar left a comment

Choose a reason for hiding this comment

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

Looks good to me!

if visibility wasn't indexed for any item, the `PermissionBadge` presenter will
cause any relevant page not to render.

this fixes that issue by providing a reasonable default display badge in the
case that we can't identify the visibility from the indexed data.
@dunn dunn merged commit 4f8b5de into main Aug 23, 2022
@dunn dunn deleted the permission-badge-default branch August 23, 2022 20:58
@dlpierce dlpierce added the notes-bugfix Release Notes: Fixed a bug label Oct 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
notes-bugfix Release Notes: Fixed a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants