From eb257d2d288433e164a2f3b910fc562fd4e7670d Mon Sep 17 00:00:00 2001 From: chainchompa Date: Fri, 26 Jul 2024 13:34:25 -0400 Subject: [PATCH] update delete board modal to be more descriptive --- invokeai/frontend/web/public/locales/en.json | 3 ++- .../features/gallery/components/Boards/DeleteBoardModal.tsx | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/invokeai/frontend/web/public/locales/en.json b/invokeai/frontend/web/public/locales/en.json index 659df78d9b..d37d38608f 100644 --- a/invokeai/frontend/web/public/locales/en.json +++ b/invokeai/frontend/web/public/locales/en.json @@ -31,7 +31,8 @@ "deleteBoard": "Delete Board", "deleteBoardAndImages": "Delete Board and Images", "deleteBoardOnly": "Delete Board Only", - "deletedBoardsCannotbeRestored": "Deleted boards cannot be restored", + "deletedBoardsCannotbeRestored": "Deleted boards cannot be restored. If only this board is deleted then the remaining images will be uncategorized.", + "deletedPrivateBoardsCannotbeRestored": "Deleted boards cannot be restored. If only this board is deleted then the remaining images will be uncategorized and return to their creator.", "hideBoards": "Hide Boards", "loading": "Loading...", "menuItemAutoAdd": "Auto-add to this Board", diff --git a/invokeai/frontend/web/src/features/gallery/components/Boards/DeleteBoardModal.tsx b/invokeai/frontend/web/src/features/gallery/components/Boards/DeleteBoardModal.tsx index 377636d0d0..3707c24440 100644 --- a/invokeai/frontend/web/src/features/gallery/components/Boards/DeleteBoardModal.tsx +++ b/invokeai/frontend/web/src/features/gallery/components/Boards/DeleteBoardModal.tsx @@ -120,7 +120,11 @@ const DeleteBoardModal = (props: Props) => { bottomMessage={t('boards.bottomMessage')} /> )} - {t('boards.deletedBoardsCannotbeRestored')} + + {boardToDelete.is_private + ? t('boards.deletedPrivateBoardsCannotbeRestored') + : t('boards.deletedBoardsCannotbeRestored')} + {canRestoreDeletedImagesFromBin ? t('gallery.deleteImageBin') : t('gallery.deleteImagePermanent')}