Merge branch 'remove-file-from-collection' into trash

This commit is contained in:
Abhinav 2021-10-26 16:53:14 +05:30
commit 393fb66141
2 changed files with 12 additions and 3 deletions

View file

@ -124,7 +124,7 @@ const SelectedFileOptions = ({
const removeFromCollectionHandler = () =>
setDialogMessage({
title: constants.CONFIRM_REMOVE,
content: constants.CONFIRM_REMOVE_MESSAGE,
content: constants.CONFIRM_REMOVE_MESSAGE(),
staticBackdrop: true,
proceed: {
action: removeFromCollectionHelper,

View file

@ -553,8 +553,6 @@ const englishConstants = {
SORT_BY_COLLECTION_NAME: 'album title',
REMOVE: 'remove',
CONFIRM_REMOVE: 'confirm removal',
CONFIRM_REMOVE_MESSAGE:
'are you sure you want to remove these files from the collection',
TRASH: 'trash',
MOVE_TO_TRASH: 'move to trash',
TRASH_MESSAGE:
@ -570,6 +568,17 @@ const englishConstants = {
CONFIRM_EMPTY_TRASH: 'confirm empty trash',
EMPTY_TRASH_MESSAGE:
"all trash files will be permanently deleted and can't be restored",
CONFIRM_REMOVE_MESSAGE: () => (
<>
<p>
are you sure you want to remove these files from the collection?
</p>
<p>
all files that are unique to this album will be moved to trash
</p>
</>
),
};
export default englishConstants;