diff --git a/CHANGELOG.md b/CHANGELOG.md index 3000bf39..ad019fff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/src/routes/RequestsRoute.js b/src/routes/RequestsRoute.js index 4342024a..aac7795e 100644 --- a/src/routes/RequestsRoute.js +++ b/src/routes/RequestsRoute.js @@ -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) => { diff --git a/translations/ui-requests/en.json b/translations/ui-requests/en.json index 08af82f5..d50bfbbf 100644 --- a/translations/ui-requests/en.json +++ b/translations/ui-requests/en.json @@ -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",