update delete board modal to be more descriptive

This commit is contained in:
chainchompa 2024-07-26 13:34:25 -04:00
parent e1509bcb45
commit eb257d2d28
2 changed files with 7 additions and 2 deletions

View File

@ -31,7 +31,8 @@
"deleteBoard": "Delete Board", "deleteBoard": "Delete Board",
"deleteBoardAndImages": "Delete Board and Images", "deleteBoardAndImages": "Delete Board and Images",
"deleteBoardOnly": "Delete Board Only", "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", "hideBoards": "Hide Boards",
"loading": "Loading...", "loading": "Loading...",
"menuItemAutoAdd": "Auto-add to this Board", "menuItemAutoAdd": "Auto-add to this Board",

View File

@ -120,7 +120,11 @@ const DeleteBoardModal = (props: Props) => {
bottomMessage={t('boards.bottomMessage')} bottomMessage={t('boards.bottomMessage')}
/> />
)} )}
<Text>{t('boards.deletedBoardsCannotbeRestored')}</Text> <Text>
{boardToDelete.is_private
? t('boards.deletedPrivateBoardsCannotbeRestored')
: t('boards.deletedBoardsCannotbeRestored')}
</Text>
<Text> <Text>
{canRestoreDeletedImagesFromBin ? t('gallery.deleteImageBin') : t('gallery.deleteImagePermanent')} {canRestoreDeletedImagesFromBin ? t('gallery.deleteImageBin') : t('gallery.deleteImagePermanent')}
</Text> </Text>