From bc7c0f75a012ac3ce095be093f4c88ecd8533c5c Mon Sep 17 00:00:00 2001 From: blessedcoolant <54517381+blessedcoolant@users.noreply.github.com> Date: Thu, 13 Jul 2023 13:53:15 +1200 Subject: [PATCH] fix: Rename toggleBoundingBoxDimension to flipBoundingBoxAxes --- .../frontend/web/src/features/canvas/store/canvasSlice.ts | 4 ++-- .../Parameters/Canvas/BoundingBox/ParamBoundingBoxSize.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/invokeai/frontend/web/src/features/canvas/store/canvasSlice.ts b/invokeai/frontend/web/src/features/canvas/store/canvasSlice.ts index 9bba44e3ea..550cfff4bc 100644 --- a/invokeai/frontend/web/src/features/canvas/store/canvasSlice.ts +++ b/invokeai/frontend/web/src/features/canvas/store/canvasSlice.ts @@ -240,7 +240,7 @@ export const canvasSlice = createSlice({ state.scaledBoundingBoxDimensions = scaledDimensions; } }, - toggleBoundingBoxDimensions: (state) => { + flipBoundingBoxAxes: (state) => { const [currWidth, currHeight] = [ state.boundingBoxDimensions.width, state.boundingBoxDimensions.height, @@ -931,7 +931,7 @@ export const { setBoundingBoxDimensions, setBoundingBoxPreviewFill, setBoundingBoxScaleMethod, - toggleBoundingBoxDimensions, + flipBoundingBoxAxes, setBrushColor, setBrushSize, setCanvasContainerDimensions, diff --git a/invokeai/frontend/web/src/features/parameters/components/Parameters/Canvas/BoundingBox/ParamBoundingBoxSize.tsx b/invokeai/frontend/web/src/features/parameters/components/Parameters/Canvas/BoundingBox/ParamBoundingBoxSize.tsx index 6c0ab0cd85..3c07768461 100644 --- a/invokeai/frontend/web/src/features/parameters/components/Parameters/Canvas/BoundingBox/ParamBoundingBoxSize.tsx +++ b/invokeai/frontend/web/src/features/parameters/components/Parameters/Canvas/BoundingBox/ParamBoundingBoxSize.tsx @@ -1,7 +1,7 @@ import { Flex, Spacer, Text } from '@chakra-ui/react'; import { useAppDispatch } from 'app/store/storeHooks'; import IAIIconButton from 'common/components/IAIIconButton'; -import { toggleBoundingBoxDimensions } from 'features/canvas/store/canvasSlice'; +import { flipBoundingBoxAxes } from 'features/canvas/store/canvasSlice'; import { useTranslation } from 'react-i18next'; import { MdOutlineSwapVert } from 'react-icons/md'; import ParamAspectRatio from '../../Core/ParamAspectRatio'; @@ -47,7 +47,7 @@ export default function ParamBoundingBoxSize() { size="sm" icon={} fontSize={20} - onClick={() => dispatch(toggleBoundingBoxDimensions())} + onClick={() => dispatch(flipBoundingBoxAxes())} />