Skip to content

Commit

Permalink
UIREQ-1022: Add One or more Pickup locations are no longer available …
Browse files Browse the repository at this point in the history
…error
  • Loading branch information
Dmitriy-Litvinenko committed Sep 11, 2023
1 parent e9215eb commit 8ba2485
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
* Move request popup show available Request Types. Refs UIREQ-1005.
* Cover RequesterInformation by jest/RTL tests. Refs UIREQ-952.
* Prefer `@folio/stripes` exports to private paths when importing components. Refs UIREQ-1020.
* Add `One or more Pickup locations are no longer available` error. Refs UIREQ-1022.

## [8.0.2](https://github.com/folio-org/ui-requests/tree/v8.0.2) (2023-03-29)
[Full Changelog](https://github.com/folio-org/ui-requests/compare/v8.0.1...v8.0.2)
Expand Down
2 changes: 2 additions & 0 deletions src/routes/RequestsRoute.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,11 +204,13 @@ export const buildHoldRecords = (records) => {
export const REQUEST_ERROR_MESSAGE_CODE = {
REQUEST_NOT_ALLOWED_FOR_PATRON_TITLE_COMBINATION: 'REQUEST_NOT_ALLOWED_FOR_PATRON_TITLE_COMBINATION',
SERVICE_POINT_IS_NOT_PICKUP_LOCATION: 'SERVICE_POINT_IS_NOT_PICKUP_LOCATION',
REQUEST_PICKUP_SERVICE_POINT_IS_NOT_ALLOWED: 'REQUEST_PICKUP_SERVICE_POINT_IS_NOT_ALLOWED',
};

export const REQUEST_ERROR_MESSAGE_TRANSLATION_KEYS = {
[REQUEST_ERROR_MESSAGE_CODE.REQUEST_NOT_ALLOWED_FOR_PATRON_TITLE_COMBINATION]: 'ui-requests.errors.requestNotAllowedForPatronTitleCombination',
[REQUEST_ERROR_MESSAGE_CODE.SERVICE_POINT_IS_NOT_PICKUP_LOCATION]: 'ui-requests.errors.servicePointIsNotPickupLocation',
[REQUEST_ERROR_MESSAGE_CODE.REQUEST_PICKUP_SERVICE_POINT_IS_NOT_ALLOWED]: 'ui-requests.errors.requestPickupServicePointIsNotAllowed',
};

export const getRequestErrorMessage = (error, intl) => {
Expand Down
1 change: 1 addition & 0 deletions translations/ui-requests/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
"errors.requestType.selectItem": "Please select a request type",
"errors.requestNotAllowedForPatronTitleCombination": "Hold requests are not allowed for this patron and title combination",
"errors.servicePointIsNotPickupLocation": "Service point is not a Pickup location",
"errors.requestPickupServicePointIsNotAllowed": "One or more Pickup locations are no longer available",

"actions.label": "Actions",
"actions.edit": "Edit",
Expand Down

0 comments on commit 8ba2485

Please sign in to comment.