From 5410d42da05a86719edf198b08a1d225b9eb3908 Mon Sep 17 00:00:00 2001 From: blessedcoolant <54517381+blessedcoolant@users.noreply.github.com> Date: Sat, 12 Nov 2022 08:08:37 +1300 Subject: [PATCH] Disable stage info in Inpainting Tab --- frontend/src/features/canvas/IAICanvas.tsx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/frontend/src/features/canvas/IAICanvas.tsx b/frontend/src/features/canvas/IAICanvas.tsx index 25f8cc5767..3cf573d94a 100644 --- a/frontend/src/features/canvas/IAICanvas.tsx +++ b/frontend/src/features/canvas/IAICanvas.tsx @@ -76,7 +76,6 @@ const canvasSelector = createSelector( } return { - activeTabName, isMaskEnabled, isModifyingBoundingBox: isTransformingBoundingBox || isMovingBoundingBox, shouldShowBoundingBox, @@ -86,6 +85,7 @@ const canvasSelector = createSelector( stageDimensions, stageScale, tool, + outpaintingOnly: activeTabName === 'outpainting', }; }, { @@ -101,7 +101,6 @@ export let canvasImageLayerRef: MutableRefObject; const IAICanvas = () => { const { - activeTabName, isMaskEnabled, isModifyingBoundingBox, shouldShowBoundingBox, @@ -111,6 +110,7 @@ const IAICanvas = () => { stageDimensions, stageScale, tool, + outpaintingOnly, } = useAppSelector(canvasSelector); useCanvasHotkeys(); @@ -161,9 +161,7 @@ const IAICanvas = () => { onWheel={handleWheel} listening={tool === 'move' && !isModifyingBoundingBox} draggable={ - tool === 'move' && - !isModifyingBoundingBox && - activeTabName === 'outpainting' + tool === 'move' && !isModifyingBoundingBox && outpaintingOnly } > @@ -211,7 +209,7 @@ const IAICanvas = () => { /> - + {outpaintingOnly && } );