From eb9028ab3069bca9d747aca664ca60ae13ba6df8 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Tue, 1 Nov 2022 16:51:03 +1100 Subject: [PATCH] Disabled bounding box settings when locked --- .../AdvancedOptions/Inpainting/BoundingBoxSettings.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/frontend/src/features/options/AdvancedOptions/Inpainting/BoundingBoxSettings.tsx b/frontend/src/features/options/AdvancedOptions/Inpainting/BoundingBoxSettings.tsx index efe09f0b5d..fec9f5411c 100644 --- a/frontend/src/features/options/AdvancedOptions/Inpainting/BoundingBoxSettings.tsx +++ b/frontend/src/features/options/AdvancedOptions/Inpainting/BoundingBoxSettings.tsx @@ -145,14 +145,16 @@ const BoundingBoxSettings = () => { width={'5rem'} /> } styleClass="inpainting-bounding-box-reset-icon-btn" - isDisabled={canvasDimensions.width === boundingBoxDimensions.width} + isDisabled={ + shouldLockBoundingBox || + canvasDimensions.width === boundingBoxDimensions.width + } />
@@ -177,7 +179,6 @@ const BoundingBoxSettings = () => { width={'5rem'} /> { icon={} styleClass="inpainting-bounding-box-reset-icon-btn" isDisabled={ + shouldLockBoundingBox || canvasDimensions.height === boundingBoxDimensions.height } />