diff --git a/invokeai/frontend/web/src/features/ui/components/Notifications.tsx b/invokeai/frontend/web/src/features/ui/components/Notifications.tsx index fead694aa1b..77fa58947da 100644 --- a/invokeai/frontend/web/src/features/ui/components/Notifications.tsx +++ b/invokeai/frontend/web/src/features/ui/components/Notifications.tsx @@ -1,18 +1,18 @@ import { - Box, Flex, IconButton, Image, Popover, PopoverArrow, PopoverBody, + PopoverCloseButton, PopoverContent, PopoverHeader, PopoverTrigger, Text, } from '@invoke-ai/ui-library'; import { useAppDispatch, useAppSelector } from 'app/store/storeHooks'; -import { shouldShowNotificationIndicatorChanged } from 'features/ui/store/uiSlice'; +import { shouldShowNotificationChanged } from 'features/ui/store/uiSlice'; import InvokeSymbol from 'public/assets/images/invoke-favicon.png'; import { useCallback } from 'react'; import { useTranslation } from 'react-i18next'; @@ -24,9 +24,9 @@ import { CanvasV2Announcement } from './CanvasV2Announcement'; export const Notifications = () => { const { t } = useTranslation(); const dispatch = useAppDispatch(); - const shouldShowNotificationIndicator = useAppSelector((s) => s.ui.shouldShowNotificationIndicator); + const shouldShowNotification = useAppSelector((s) => s.ui.shouldShowNotification); const resetIndicator = useCallback(() => { - dispatch(shouldShowNotificationIndicatorChanged(false)); + dispatch(shouldShowNotificationChanged(false)); }, [dispatch]); const { data } = useGetAppVersionQuery(); @@ -35,7 +35,7 @@ export const Notifications = () => { } return ( - + { icon={} boxSize={8} /> - {shouldShowNotificationIndicator && ( - - )} - + + {t('whatsNew.whatsNewInInvoke')} diff --git a/invokeai/frontend/web/src/features/ui/store/uiSlice.ts b/invokeai/frontend/web/src/features/ui/store/uiSlice.ts index 1ba60c7ac21..e82c9baa10b 100644 --- a/invokeai/frontend/web/src/features/ui/store/uiSlice.ts +++ b/invokeai/frontend/web/src/features/ui/store/uiSlice.ts @@ -13,7 +13,7 @@ const initialUIState: UIState = { shouldShowProgressInViewer: true, accordions: {}, expanders: {}, - shouldShowNotificationIndicator: true, + shouldShowNotification: true, }; export const uiSlice = createSlice({ @@ -37,8 +37,8 @@ export const uiSlice = createSlice({ const { id, isOpen } = action.payload; state.expanders[id] = isOpen; }, - shouldShowNotificationIndicatorChanged: (state, action: PayloadAction) => { - state.shouldShowNotificationIndicator = action.payload; + shouldShowNotificationChanged: (state, action: PayloadAction) => { + state.shouldShowNotification = action.payload; }, }, extraReducers(builder) { @@ -54,7 +54,7 @@ export const { setShouldShowProgressInViewer, accordionStateChanged, expanderStateChanged, - shouldShowNotificationIndicatorChanged, + shouldShowNotificationChanged, } = uiSlice.actions; export const selectUiSlice = (state: RootState) => state.ui; diff --git a/invokeai/frontend/web/src/features/ui/store/uiTypes.ts b/invokeai/frontend/web/src/features/ui/store/uiTypes.ts index 1212da9e661..e51ee8217aa 100644 --- a/invokeai/frontend/web/src/features/ui/store/uiTypes.ts +++ b/invokeai/frontend/web/src/features/ui/store/uiTypes.ts @@ -26,7 +26,7 @@ export interface UIState { */ expanders: Record; /** - * Whether or not to show the user an indicator on notifications icon. + * Whether or not to show the user the open notification. */ - shouldShowNotificationIndicator: boolean; + shouldShowNotification: boolean; }