From eb257d2d288433e164a2f3b910fc562fd4e7670d Mon Sep 17 00:00:00 2001 From: chainchompa Date: Fri, 26 Jul 2024 13:34:25 -0400 Subject: [PATCH 1/2] 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')} From ffca792d5b703fbda979ad436430fed0f42ed630 Mon Sep 17 00:00:00 2001 From: chainchompa Date: Mon, 29 Jul 2024 09:46:02 -0400 Subject: [PATCH 2/2] edited copy for deleted boards message --- invokeai/frontend/web/public/locales/en.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/invokeai/frontend/web/public/locales/en.json b/invokeai/frontend/web/public/locales/en.json index d37d38608f..3300f7c7fa 100644 --- a/invokeai/frontend/web/public/locales/en.json +++ b/invokeai/frontend/web/public/locales/en.json @@ -31,8 +31,8 @@ "deleteBoard": "Delete Board", "deleteBoardAndImages": "Delete Board and Images", "deleteBoardOnly": "Delete Board Only", - "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.", + "deletedBoardsCannotbeRestored": "Deleted boards cannot be restored. Selecting 'Delete Board Only' will move images to an uncategorized state.", + "deletedPrivateBoardsCannotbeRestored": "Deleted boards cannot be restored. Selecting 'Delete Board Only' will move images to a private uncategorized state for the image's creator.", "hideBoards": "Hide Boards", "loading": "Loading...", "menuItemAutoAdd": "Auto-add to this Board",