add button labels and move delete button

This commit is contained in:
Abhinav 2022-10-10 14:06:47 +05:30
parent b49259f663
commit 3069650c94
2 changed files with 18 additions and 9 deletions

View file

@ -376,6 +376,16 @@ function PhotoSwipe(props: Iprops) {
className="pswp__button pswp__button--close"
title={constants.CLOSE}
/>
<button
className="pswp__button pswp__button--custom"
title={constants.DELETE}
onClick={() => {
confirmTrashFile(
photoSwipe?.currItem as EnteFile
);
}}>
<DeleteIcon fontSize="small" />
</button>
{props.enableDownload && (
<button
@ -398,6 +408,11 @@ function PhotoSwipe(props: Iprops) {
{!props.isSharedCollection &&
!props.isTrashCollection && (
<button
title={
isFav
? constants.UNFAVORITE
: constants.FAVORITE
}
className="pswp__button pswp__button--custom"
onClick={() => {
onFavClick(photoSwipe?.currItem);
@ -409,15 +424,7 @@ function PhotoSwipe(props: Iprops) {
)}
</button>
)}
<button
className="pswp__button pswp__button--custom"
onClick={() => {
confirmTrashFile(
photoSwipe?.currItem as EnteFile
);
}}>
<DeleteIcon fontSize="small" />
</button>
{!props.isSharedCollection && (
<button
className="pswp__button pswp__button--custom"

View file

@ -154,6 +154,8 @@ const englishConstants = {
'Selected files will be permanently deleted from your ente account.',
DELETE_FILE: 'Delete files',
DELETE: 'Delete',
FAVORITE: 'Favorite',
UNFAVORITE: 'Unfavorite',
MULTI_FOLDER_UPLOAD: 'Multiple folders detected',
UPLOAD_STRATEGY_CHOICE: 'Would you like to upload them into',
UPLOAD_STRATEGY_SINGLE_COLLECTION: 'A single album',