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

Remove "Item Unavailable" message from Checkouts table #4989

Merged
merged 2 commits into from
Dec 2, 2022

Conversation

masaball
Copy link
Contributor

@masaball masaball commented Dec 1, 2022

Fixes #4983

It is not necessary for there to be a message in the last column for items
that are checked out.
Comment on lines 138 to 139
elsif checkout.return_time < DateTime.current && checkout.media_object.lending_status == 'available'
view_context.link_to('Checkout', checkouts_url(params: { checkout: { media_object_id: checkout.media_object_id } }), class: 'btn btn-primary btn-xs', method: :post)
Copy link
Member

Choose a reason for hiding this comment

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

Should this case be removed as well to match the change in index.html.erb?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good question. @joncameron, If an item is not checked out should there be a checkout button next to the historical checkouts or should there only be Return buttons for current checkouts being rendered in the last column?

It will probably be cleaner and more consistent to have all historical checkouts blank, and a user can just use the link to the item page to try to check something out again.

Copy link
Contributor

Choose a reason for hiding this comment

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

@masaball I agree, it would be better to have all historical checkouts blank. Let's go that route.

@cjcolvar cjcolvar merged commit 34108d3 into develop Dec 2, 2022
@cjcolvar cjcolvar deleted the cdl_last_column branch December 2, 2022 18:34
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