add button labels and move delete button
This commit is contained in:
parent
b49259f663
commit
3069650c94
|
@ -376,6 +376,16 @@ function PhotoSwipe(props: Iprops) {
|
||||||
className="pswp__button pswp__button--close"
|
className="pswp__button pswp__button--close"
|
||||||
title={constants.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 && (
|
{props.enableDownload && (
|
||||||
<button
|
<button
|
||||||
|
@ -398,6 +408,11 @@ function PhotoSwipe(props: Iprops) {
|
||||||
{!props.isSharedCollection &&
|
{!props.isSharedCollection &&
|
||||||
!props.isTrashCollection && (
|
!props.isTrashCollection && (
|
||||||
<button
|
<button
|
||||||
|
title={
|
||||||
|
isFav
|
||||||
|
? constants.UNFAVORITE
|
||||||
|
: constants.FAVORITE
|
||||||
|
}
|
||||||
className="pswp__button pswp__button--custom"
|
className="pswp__button pswp__button--custom"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
onFavClick(photoSwipe?.currItem);
|
onFavClick(photoSwipe?.currItem);
|
||||||
|
@ -409,15 +424,7 @@ function PhotoSwipe(props: Iprops) {
|
||||||
)}
|
)}
|
||||||
</button>
|
</button>
|
||||||
)}
|
)}
|
||||||
<button
|
|
||||||
className="pswp__button pswp__button--custom"
|
|
||||||
onClick={() => {
|
|
||||||
confirmTrashFile(
|
|
||||||
photoSwipe?.currItem as EnteFile
|
|
||||||
);
|
|
||||||
}}>
|
|
||||||
<DeleteIcon fontSize="small" />
|
|
||||||
</button>
|
|
||||||
{!props.isSharedCollection && (
|
{!props.isSharedCollection && (
|
||||||
<button
|
<button
|
||||||
className="pswp__button pswp__button--custom"
|
className="pswp__button pswp__button--custom"
|
||||||
|
|
|
@ -154,6 +154,8 @@ const englishConstants = {
|
||||||
'Selected files will be permanently deleted from your ente account.',
|
'Selected files will be permanently deleted from your ente account.',
|
||||||
DELETE_FILE: 'Delete files',
|
DELETE_FILE: 'Delete files',
|
||||||
DELETE: 'Delete',
|
DELETE: 'Delete',
|
||||||
|
FAVORITE: 'Favorite',
|
||||||
|
UNFAVORITE: 'Unfavorite',
|
||||||
MULTI_FOLDER_UPLOAD: 'Multiple folders detected',
|
MULTI_FOLDER_UPLOAD: 'Multiple folders detected',
|
||||||
UPLOAD_STRATEGY_CHOICE: 'Would you like to upload them into',
|
UPLOAD_STRATEGY_CHOICE: 'Would you like to upload them into',
|
||||||
UPLOAD_STRATEGY_SINGLE_COLLECTION: 'A single album',
|
UPLOAD_STRATEGY_SINGLE_COLLECTION: 'A single album',
|
||||||
|
|
Loading…
Reference in a new issue