-
Notifications
You must be signed in to change notification settings - Fork 6
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
UIREQ-1040 - Hide Actions menu on closed request of DCB Transaction #1121
Conversation
src/ViewRequest.test.js
Outdated
...openValidRequest, | ||
}, | ||
], | ||
render( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This render is repeated multiple times - let's move it to a function renderViewRequest
and call it instead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @BogdanDenis
Implemented not only your recommendations and but also more refinement. Please re-review.
Kudos, SonarCloud Quality Gate passed! |
Purpose
UIREQ-1040 - [DCB] Request details: Hide Actions menu on closed request
Approach
Hide action menu when it is a DCB transaction - which means the request is involved with either virtual user or virtual item.
Refs
Screenshots
Action menu hidden for "Closed-Filled" Request on Borrowing Library
Action menu hidden for "Closed-Filled" Request on Lending Library
Action menu hidden for "Closed-cancelled" Request on Lending Library
Pre-Merge Checklist
Before merging this PR, please go through the following list and take appropriate actions.
If there are breaking changes, please STOP and consider the following:
Ideally all of the PRs involved in breaking changes would be merged in the same day to avoid breaking the folio-testing environment. Communication is paramount if that is to be achieved, especially as the number of intermodule and inter-team dependencies increase.
While it's helpful for reviewers to help identify potential problems, ensuring that it's safe to merge is ultimately the responsibility of the PR assignee.