From aab14718a4b17ec4b066229b069657fc5c4a7a10 Mon Sep 17 00:00:00 2001 From: Eric Jinks <3147296+Jinksi@users.noreply.github.com> Date: Fri, 13 Oct 2023 15:35:44 +1000 Subject: [PATCH 1/9] Disable accept dispute modal close when request in progress --- .../dispute-details/dispute-awaiting-response-details.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/payment-details/dispute-details/dispute-awaiting-response-details.tsx b/client/payment-details/dispute-details/dispute-awaiting-response-details.tsx index 07882870f2b..1c7431bf97b 100644 --- a/client/payment-details/dispute-details/dispute-awaiting-response-details.tsx +++ b/client/payment-details/dispute-details/dispute-awaiting-response-details.tsx @@ -171,6 +171,9 @@ const DisputeAwaitingResponseDetails: React.FC< Props > = ( { } = useContext( WCPaySettingsContext ); const onModalClose = () => { + if ( isLoading ) { + return; + } setModalOpen( false ); }; From 1d68e48be6f4e36b90f2e33f448af28bd1e9a0b1 Mon Sep 17 00:00:00 2001 From: Eric Jinks <3147296+Jinksi@users.noreply.github.com> Date: Fri, 13 Oct 2023 15:36:54 +1000 Subject: [PATCH 2/9] Disable accept dispute modal buttons when request in progress --- .../dispute-details/dispute-awaiting-response-details.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/payment-details/dispute-details/dispute-awaiting-response-details.tsx b/client/payment-details/dispute-details/dispute-awaiting-response-details.tsx index 1c7431bf97b..f831694c477 100644 --- a/client/payment-details/dispute-details/dispute-awaiting-response-details.tsx +++ b/client/payment-details/dispute-details/dispute-awaiting-response-details.tsx @@ -329,6 +329,7 @@ const DisputeAwaitingResponseDetails: React.FC< Props > = ( { >