diff --git a/invokeai/frontend/web/public/locales/en.json b/invokeai/frontend/web/public/locales/en.json index dc09ac313fd..289159eaf0e 100644 --- a/invokeai/frontend/web/public/locales/en.json +++ b/invokeai/frontend/web/public/locales/en.json @@ -20,7 +20,6 @@ "archiveBoard": "Archive Board", "archived": "Archived", "autoAddBoard": "Auto-Add Board", - "selectedForAutoAdd": "Selected for Auto-Add", "bottomMessage": "Deleting this board and its images will reset any features currently using them.", "cancel": "Cancel", "changeBoard": "Change Board", diff --git a/invokeai/frontend/web/src/features/gallery/components/Boards/BoardContextMenu.tsx b/invokeai/frontend/web/src/features/gallery/components/Boards/BoardContextMenu.tsx index 4c05d78bb89..677919bd300 100644 --- a/invokeai/frontend/web/src/features/gallery/components/Boards/BoardContextMenu.tsx +++ b/invokeai/frontend/web/src/features/gallery/components/Boards/BoardContextMenu.tsx @@ -71,11 +71,13 @@ const BoardContextMenu = ({ board, setBoardToDelete, children }: Props) => { () => ( - {!autoAssignBoardOnClick && ( - } isDisabled={isSelectedForAutoAdd} onClick={handleSetAutoAdd}> - {isSelectedForAutoAdd ? t('boards.selectedForAutoAdd') : t('boards.menuItemAutoAdd')} - - )} + } + isDisabled={isSelectedForAutoAdd || autoAssignBoardOnClick} + onClick={handleSetAutoAdd} + > + {t('boards.menuItemAutoAdd')} + {isBulkDownloadEnabled && ( } onClickCapture={handleBulkDownload}> {t('boards.downloadBoard')} diff --git a/invokeai/frontend/web/src/features/gallery/components/Boards/BoardsList/GalleryBoard.tsx b/invokeai/frontend/web/src/features/gallery/components/Boards/BoardsList/GalleryBoard.tsx index ad40fdbf6a9..fa5ed159309 100644 --- a/invokeai/frontend/web/src/features/gallery/components/Boards/BoardsList/GalleryBoard.tsx +++ b/invokeai/frontend/web/src/features/gallery/components/Boards/BoardsList/GalleryBoard.tsx @@ -64,10 +64,10 @@ const GalleryBoard = ({ board, isSelected, setBoardToDelete }: GalleryBoardProps const handleSelectBoard = useCallback(() => { dispatch(boardIdSelected({ boardId: board_id })); - if (autoAssignBoardOnClick) { + if (autoAssignBoardOnClick && !board.archived) { dispatch(autoAddBoardIdChanged(board_id)); } - }, [board_id, autoAssignBoardOnClick, dispatch]); + }, [board_id, autoAssignBoardOnClick, dispatch, board.archived]); const [updateBoard, { isLoading: isUpdateBoardLoading }] = useUpdateBoardMutation(); diff --git a/invokeai/frontend/web/src/features/gallery/components/Boards/NoBoardBoardContextMenu.tsx b/invokeai/frontend/web/src/features/gallery/components/Boards/NoBoardBoardContextMenu.tsx index 3836f53e0d2..b15226b9e6c 100644 --- a/invokeai/frontend/web/src/features/gallery/components/Boards/NoBoardBoardContextMenu.tsx +++ b/invokeai/frontend/web/src/features/gallery/components/Boards/NoBoardBoardContextMenu.tsx @@ -33,11 +33,13 @@ const NoBoardBoardContextMenu = ({ children }: Props) => { () => ( - {!autoAssignBoardOnClick && ( - } isDisabled={isSelectedForAutoAdd} onClick={handleSetAutoAdd}> - {isSelectedForAutoAdd ? t('boards.selectedForAutoAdd') : t('boards.menuItemAutoAdd')} - - )} + } + isDisabled={isSelectedForAutoAdd || autoAssignBoardOnClick} + onClick={handleSetAutoAdd} + > + {t('boards.menuItemAutoAdd')} + {isBulkDownloadEnabled && ( } onClickCapture={handleBulkDownload}> {t('boards.downloadBoard')}