Skip to content

Commit

Permalink
UIREQMED-42: Add Decline Action for Mediated request with status of N…
Browse files Browse the repository at this point in the history
…ew - Awaiting confirmation
  • Loading branch information
Dmitriy-Litvinenko committed Nov 8, 2024
1 parent d1f7c1e commit c1d4be6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import {
IfPermission,
TitleManager,
useOkapiKy,
useStripes,
} from '@folio/stripes/core';
import {
Button,
Expand Down Expand Up @@ -120,6 +119,10 @@ const MediatedRequestsDetail = ({
onToggle();
history.push(`${mediatedRequestsActivitiesUrl}/edit/${mediatedRequestIdFromPathname}`);
};
const handleDecline = () => {
onOpenDeclineModal();
onToggle();
};

return (
<>
Expand All @@ -138,10 +141,7 @@ const MediatedRequestsDetail = ({
<Button
buttonStyle="dropdownItem"
marginBottom0
onClick={() => {
onOpenDeclineModal();
onToggle();
}}
onClick={handleDecline}
>
<Icon icon={ICONS.TIMES_CIRCLE}>
<FormattedMessage id="ui-requests-mediated.mediatedRequestDetails.actionMenu.decline" />
Expand Down
1 change: 0 additions & 1 deletion src/routes/MediatedRequestsActivitiesContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ class MediatedRequestsActivitiesContainer extends React.Component {
query: buildQuery,
},
},
// shouldRefresh: () => true,
resourceShouldRefresh: true,
throwErrors: false,
},
Expand Down

0 comments on commit c1d4be6

Please sign in to comment.