From 93c4a46ad844e399ea3910a65330facbdf5dd28c Mon Sep 17 00:00:00 2001 From: dkmyta <43220201+dkmyta@users.noreply.github.com> Date: Sun, 18 Aug 2024 10:14:35 -0700 Subject: [PATCH] Protect: Disable ignore button when fixer in progress (#38898) --- ...pdate-protect-disable-ignore-button-when-fixer-in-progress | 4 ++++ .../protect/src/js/components/threats-list/paid-list.jsx | 1 + 2 files changed, 5 insertions(+) create mode 100644 projects/plugins/protect/changelog/update-protect-disable-ignore-button-when-fixer-in-progress diff --git a/projects/plugins/protect/changelog/update-protect-disable-ignore-button-when-fixer-in-progress b/projects/plugins/protect/changelog/update-protect-disable-ignore-button-when-fixer-in-progress new file mode 100644 index 0000000000000..e6d878127bba1 --- /dev/null +++ b/projects/plugins/protect/changelog/update-protect-disable-ignore-button-when-fixer-in-progress @@ -0,0 +1,4 @@ +Significance: patch +Type: fixed + +Disables the unignore threats button when a fixer is in progress diff --git a/projects/plugins/protect/src/js/components/threats-list/paid-list.jsx b/projects/plugins/protect/src/js/components/threats-list/paid-list.jsx index 69a0c0846a96d..10ecb1781f8f4 100644 --- a/projects/plugins/protect/src/js/components/threats-list/paid-list.jsx +++ b/projects/plugins/protect/src/js/components/threats-list/paid-list.jsx @@ -151,6 +151,7 @@ const ThreatAccordionItem = ( { isDestructive={ true } variant="secondary" onClick={ handleIgnoreThreatClick() } + disabled={ fixerInProgress } > { __( 'Ignore threat', 'jetpack-protect' ) }