diff --git a/invokeai/frontend/web/src/common/components/IAIInformationalPopover.tsx b/invokeai/frontend/web/src/common/components/IAIInformationalPopover.tsx index bbfccf7c0d..876ce6488a 100644 --- a/invokeai/frontend/web/src/common/components/IAIInformationalPopover.tsx +++ b/invokeai/frontend/web/src/common/components/IAIInformationalPopover.tsx @@ -32,15 +32,15 @@ function IAIInformationalPopover({ children, placement, }: Props): JSX.Element { - const shouldDisableInformationalPopovers = useAppSelector( - (state) => state.system.shouldDisableInformationalPopovers + const shouldEnableInformationalPopovers = useAppSelector( + (state) => state.system.shouldEnableInformationalPopovers ); const { t } = useTranslation(); const heading = t(`popovers.${details}.heading`); const paragraph = t(`popovers.${details}.paragraph`); - if (shouldDisableInformationalPopovers) { + if (!shouldEnableInformationalPopovers) { return children; } else { return ( 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 a3eb428526..52d3dfc1ba 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,4 +1,4 @@ -import { Flex, Spacer, Text } from '@chakra-ui/react'; +import { Box, Flex, Spacer, Text } from '@chakra-ui/react'; import { createSelector } from '@reduxjs/toolkit'; import { useAppDispatch, useAppSelector } from 'app/store/storeHooks'; import IAIIconButton from 'common/components/IAIIconButton'; @@ -94,20 +94,22 @@ export default function ParamBoundingBoxSize() { }} > - - - {t('parameters.aspectRatio')} - - + + + + {t('parameters.aspectRatio')} + + + - - - {t('parameters.aspectRatio')} - - + + + + {t('parameters.aspectRatio')} + + + { shouldUseNSFWChecker, shouldUseWatermarker, shouldAutoChangeDimensions, - shouldDisableInformationalPopovers, + shouldEnableInformationalPopovers, } = useAppSelector(selector); const handleClickResetWebUI = useCallback(() => { @@ -312,11 +312,11 @@ const SettingsModal = ({ children, config }: SettingsModalProps) => { /> )} ) => dispatch( - setShouldDisableInformationalPopovers(e.target.checked) + setShouldEnableInformationalPopovers(e.target.checked) ) } /> diff --git a/invokeai/frontend/web/src/features/system/store/systemSlice.ts b/invokeai/frontend/web/src/features/system/store/systemSlice.ts index c74ab87dcf..1fb50562c4 100644 --- a/invokeai/frontend/web/src/features/system/store/systemSlice.ts +++ b/invokeai/frontend/web/src/features/system/store/systemSlice.ts @@ -35,7 +35,7 @@ export const initialSystemState: SystemState = { language: 'en', shouldUseNSFWChecker: false, shouldUseWatermarker: false, - shouldDisableInformationalPopovers: false, + shouldEnableInformationalPopovers: false, status: 'DISCONNECTED', }; @@ -76,11 +76,11 @@ export const systemSlice = createSlice({ shouldUseWatermarkerChanged(state, action: PayloadAction) { state.shouldUseWatermarker = action.payload; }, - setShouldDisableInformationalPopovers( + setShouldEnableInformationalPopovers( state, action: PayloadAction ) { - state.shouldDisableInformationalPopovers = action.payload; + state.shouldEnableInformationalPopovers = action.payload; }, }, extraReducers(builder) { @@ -241,7 +241,7 @@ export const { languageChanged, shouldUseNSFWCheckerChanged, shouldUseWatermarkerChanged, - setShouldDisableInformationalPopovers, + setShouldEnableInformationalPopovers, } = systemSlice.actions; export default systemSlice.reducer; diff --git a/invokeai/frontend/web/src/features/system/store/types.ts b/invokeai/frontend/web/src/features/system/store/types.ts index 29bc836dae..5b83e35d22 100644 --- a/invokeai/frontend/web/src/features/system/store/types.ts +++ b/invokeai/frontend/web/src/features/system/store/types.ts @@ -33,7 +33,7 @@ export interface SystemState { shouldUseNSFWChecker: boolean; shouldUseWatermarker: boolean; status: SystemStatus; - shouldDisableInformationalPopovers: boolean; + shouldEnableInformationalPopovers: boolean; } export const LANGUAGES = {