Skip to content

Commit eb257d2

Browse files
committed
update delete board modal to be more descriptive
1 parent e1509bc commit eb257d2

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

invokeai/frontend/web/public/locales/en.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
"deleteBoard": "Delete Board",
3232
"deleteBoardAndImages": "Delete Board and Images",
3333
"deleteBoardOnly": "Delete Board Only",
34-
"deletedBoardsCannotbeRestored": "Deleted boards cannot be restored",
34+
"deletedBoardsCannotbeRestored": "Deleted boards cannot be restored. If only this board is deleted then the remaining images will be uncategorized.",
35+
"deletedPrivateBoardsCannotbeRestored": "Deleted boards cannot be restored. If only this board is deleted then the remaining images will be uncategorized and return to their creator.",
3536
"hideBoards": "Hide Boards",
3637
"loading": "Loading...",
3738
"menuItemAutoAdd": "Auto-add to this Board",

invokeai/frontend/web/src/features/gallery/components/Boards/DeleteBoardModal.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,11 @@ const DeleteBoardModal = (props: Props) => {
120120
bottomMessage={t('boards.bottomMessage')}
121121
/>
122122
)}
123-
<Text>{t('boards.deletedBoardsCannotbeRestored')}</Text>
123+
<Text>
124+
{boardToDelete.is_private
125+
? t('boards.deletedPrivateBoardsCannotbeRestored')
126+
: t('boards.deletedBoardsCannotbeRestored')}
127+
</Text>
124128
<Text>
125129
{canRestoreDeletedImagesFromBin ? t('gallery.deleteImageBin') : t('gallery.deleteImagePermanent')}
126130
</Text>

0 commit comments

Comments
 (0)