Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

update(EditAlbumDetailsDialog):add-cover-image-functionality

Aswin Asok00394c2473ff
diff --git a/web/apps/photos/src/components/Collections/CollectionHeader.tsx b/web/apps/photos/src/components/Collections/CollectionHeader.tsx
index 4e0d50a30a..317348c6d9 100644
--- a/web/apps/photos/src/components/Collections/CollectionHeader.tsx
+++ b/web/apps/photos/src/components/Collections/CollectionHeader.tsx
@@ -12,7 +12,6 @@ import ArchiveOutlinedIcon from "@mui/icons-material/ArchiveOutlined";
import CheckIcon from "@mui/icons-material/Check";
import DeleteOutlinedIcon from "@mui/icons-material/DeleteOutlined";
import EditIcon from "@mui/icons-material/Edit";
-import ImageOutlinedIcon from "@mui/icons-material/ImageOutlined";
import LinkIcon from "@mui/icons-material/Link";
import LogoutIcon from "@mui/icons-material/Logout";
import MapOutlinedIcon from "@mui/icons-material/MapOutlined";
@@ -54,8 +53,6 @@ import {
findDefaultHiddenCollectionIDs,
isHiddenCollection,
leaveSharedCollection,
- renameCollection,
- updateCollectionDescription,
updateCollectionOrder,
updateCollectionSortOrder,
updateCollectionVisibility,
@@ -75,10 +72,6 @@ import { usePhotosAppContext } from "ente-new/photos/types/context";
import { t } from "i18next";
import React, { useCallback, useRef } from "react";
import { Trans } from "react-i18next";
-import {
- EditAlbumDetailsDialog,
- type AlbumDetails,
-} from "./EditAlbumDetailsDialog";
export interface CollectionHeaderProps {
collectionSummary: CollectionSummary;
@@ -89,8 +82,7 @@ export interface CollectionHeaderProps {
onCollectionShare: () => void;
onCollectionManageLink: () => void;
onCollectionCast: () => void;
- canSetAlbumCover: boolean;
- onSetAlbumCover: () => void;
+ onEditAlbumDetails: () => void;
hasActiveFileSelection: boolean;
onAddSaveGroup: AddSaveGroup;
onShowMap: () => void;
@@ -142,8 +134,7 @@ const CollectionHeaderOptions: React.FC<CollectionHeaderProps> = ({
onCollectionShare,
onCollectionManageLink,
onCollectionCast,
- canSetAlbumCover,
- onSetAlbumCover,
+ onEditAlbumDetails,
hasActiveFileSelection,
onAddSaveGroup,
isActiveCollectionDownloadInProgress,
@@ -156,10 +147,6 @@ const CollectionHeaderOptions: React.FC<CollectionHeaderProps> = ({
const { show: showSortOrderMenu, props: sortOrderMenuVisibilityProps } =
useModalVisibility();
- const {
- show: showEditAlbumDetails,
- props: editAlbumDetailsVisibilityProps,
- } = useModalVisibility();
const { type: collectionSummaryType, fileCount } = collectionSummary;
const isQuickLinkAlbum =
@@ -184,34 +171,6 @@ const CollectionHeaderOptions: React.FC<CollectionHeaderProps> = ({
[showLoadingBar, hideLoadingBar, onGenericError, onRemotePull],
);
- const handleEditAlbumDetails = useCallback(
- async ({ name, description }: AlbumDetails) => {
- if (!activeCollection) return;
-
- let didAttemptWrite = false;
- try {
- if (activeCollection.name != name) {
- didAttemptWrite = true;
- await renameCollection(activeCollection, name);
- }
- if (
- (
- activeCollection.pubMagicMetadata?.data.caption ?? ""
- ).trim() != description
- ) {
- didAttemptWrite = true;
- await updateCollectionDescription(
- activeCollection,
- description,
- );
- }
- } finally {
- if (didAttemptWrite) void onRemotePull({ silent: true });
- }
- },
- [activeCollection, onRemotePull],
- );
-
const hasAlbumFiles = fileCount > 0;
const confirmDeleteCollection = () => {
@@ -608,21 +567,12 @@ const CollectionHeaderOptions: React.FC<CollectionHeaderProps> = ({
activeCollection && (
<OverflowMenuOption
key="edit-details"
- onClick={showEditAlbumDetails}
+ onClick={onEditAlbumDetails}
startIcon={<EditIcon />}
>
{t("edit_details")}
</OverflowMenuOption>
),
- canSetAlbumCover && (
- <OverflowMenuOption
- key="set-cover"
- onClick={onSetAlbumCover}
- startIcon={<ImageOutlinedIcon />}
- >
- {t("set_cover")}
- </OverflowMenuOption>
- ),
<OverflowMenuOption
key="sort"
onClick={showSortOrderMenu}
@@ -756,17 +706,6 @@ const CollectionHeaderOptions: React.FC<CollectionHeaderProps> = ({
onAscClick={changeSortOrderAsc}
onDescClick={changeSortOrderDesc}
/>
- {activeCollection && editAlbumDetailsVisibilityProps.open && (
- <EditAlbumDetailsDialog
- key={activeCollection.id}
- {...editAlbumDetailsVisibilityProps}
- initialName={activeCollection.name}
- initialDescription={
- activeCollection.pubMagicMetadata?.data.caption ?? ""
- }
- onSubmit={handleEditAlbumDetails}
- />
- )}
</Box>
);
};
diff --git a/web/apps/photos/src/components/Collections/EditAlbumDetailsDialog.tsx b/web/apps/photos/src/components/Collections/EditAlbumDetailsDialog.tsx
index 5c2f07f304..86a300221d 100644
--- a/web/apps/photos/src/components/Collections/EditAlbumDetailsDialog.tsx
+++ b/web/apps/photos/src/components/Collections/EditAlbumDetailsDialog.tsx
@@ -4,37 +4,60 @@ import {
DialogTitle,
Stack,
TextField,
+ Typography,
} from "@mui/material";
+import type { LocalUser } from "ente-accounts-rs/services/user";
import { FocusVisibleButton } from "ente-base/components/mui/FocusVisibleButton";
import { LoadingButton } from "ente-base/components/mui/LoadingButton";
-import type { ModalVisibilityProps } from "ente-base/components/utils/modal";
+import {
+ useModalVisibility,
+ type ModalVisibilityProps,
+} from "ente-base/components/utils/modal";
import { useBaseContext } from "ente-base/context";
-import { maxAlbumDescriptionLength } from "ente-media/collection";
+import {
+ maxAlbumDescriptionLength,
+ type Collection,
+} from "ente-media/collection";
+import type { EnteFile } from "ente-media/file";
+import { FileType } from "ente-media/file-type";
+import { ItemCard, PreviewItemTile } from "ente-new/photos/components/Tiles";
import { albumDescriptionGraphemeCount } from "ente-new/photos/services/collection";
import { useFormik } from "formik";
import { t } from "i18next";
-import React, { useId } from "react";
+import React, { useId, useState } from "react";
+import { PickCoverPhotoDialog } from "./PickCoverPhotoDialog";
export interface AlbumDetails {
name: string;
description: string;
+ /** Undefined when untouched; zero resets to the default cover. */
+ coverID?: number;
}
type EditAlbumDetailsDialogProps = ModalVisibilityProps & {
- initialName: string;
- initialDescription: string;
+ collection: Collection;
+ files: EnteFile[];
+ initialCoverFile: EnteFile | undefined;
+ user: LocalUser;
onSubmit: (details: AlbumDetails) => Promise<void>;
};
export const EditAlbumDetailsDialog: React.FC<EditAlbumDetailsDialogProps> = ({
open,
onClose,
- initialName,
- initialDescription,
+ collection,
+ files,
+ initialCoverFile,
+ user,
onSubmit,
}) => {
const { showMiniDialog, onGenericError } = useBaseContext();
const titleID = useId();
+ const { show: showPickCoverPhoto, props: pickCoverPhotoVisibilityProps } =
+ useModalVisibility();
+ const [pendingCoverID, setPendingCoverID] = useState<number>();
+ const initialName = collection.name;
+ const initialDescription = collection.pubMagicMetadata?.data.caption ?? "";
const formik = useFormik<AlbumDetails>({
initialValues: { name: initialName, description: initialDescription },
onSubmit: async ({
@@ -47,7 +70,7 @@ export const EditAlbumDetailsDialog: React.FC<EditAlbumDetailsDialogProps> = ({
albumDescriptionGraphemeCount(description);
if (!name || descriptionLength > maxAlbumDescriptionLength) return;
try {
- await onSubmit({ name, description });
+ await onSubmit({ name, description, coverID: pendingCoverID });
onClose();
} catch (e) {
onGenericError(e);
@@ -61,7 +84,8 @@ export const EditAlbumDetailsDialog: React.FC<EditAlbumDetailsDialogProps> = ({
const isDescriptionTooLong = descriptionLength > maxAlbumDescriptionLength;
const hasChanges =
trimmedName != initialName ||
- trimmedDescription != initialDescription.trim();
+ trimmedDescription != initialDescription.trim() ||
+ pendingCoverID !== undefined;
const isSaveDisabled =
!trimmedName ||
isDescriptionTooLong ||
@@ -69,7 +93,7 @@ export const EditAlbumDetailsDialog: React.FC<EditAlbumDetailsDialogProps> = ({
formik.isSubmitting;
const handleClose = () => {
- if (formik.isSubmitting) return;
+ if (formik.isSubmitting || pickCoverPhotoVisibilityProps.open) return;
if (hasChanges) {
showMiniDialog({
title: t("discard_changes"),
@@ -85,65 +109,127 @@ export const EditAlbumDetailsDialog: React.FC<EditAlbumDetailsDialogProps> = ({
onClose();
};
+ const handleUseSelectedPhoto = (file: EnteFile) => {
+ setPendingCoverID(file.id);
+ return Promise.resolve(true);
+ };
+
+ const handleResetToDefault = () => {
+ setPendingCoverID(0);
+ return Promise.resolve(true);
+ };
+
+ const canShowCoverEditor = files.some(
+ (file) => file.metadata.fileType !== FileType.video,
+ );
+ const effectiveCoverID =
+ pendingCoverID ?? collection.pubMagicMetadata?.data.coverID ?? 0;
+ const effectiveCoverFile =
+ pendingCoverID === undefined
+ ? initialCoverFile
+ : pendingCoverID > 0
+ ? files.find(({ id }) => id === pendingCoverID)
+ : collection.pubMagicMetadata?.data.asc
+ ? files.at(-1)
+ : files[0];
+
return (
- <Dialog
- open={open}
- onClose={handleClose}
- aria-labelledby={titleID}
- maxWidth="xs"
- fullWidth
- slotProps={{ paper: { sx: { p: "8px 4px 4px 4px" } } }}
- >
- <DialogTitle id={titleID}>{t("edit_details")}</DialogTitle>
- <DialogContent sx={{ "&&&": { pt: 0 } }}>
- <Stack component="form" onSubmit={formik.handleSubmit}>
- <TextField
- name="name"
- value={formik.values.name}
- onChange={formik.handleChange}
- label={t("album_name")}
- autoFocus
- fullWidth
- margin="normal"
- disabled={formik.isSubmitting}
- error={!trimmedName}
- helperText={!trimmedName ? t("required") : " "}
- />
- <TextField
- name="description"
- value={formik.values.description}
- onChange={formik.handleChange}
- label={t("description")}
- placeholder={t("caption_placeholder")}
- multiline
- minRows={5}
- fullWidth
- disabled={formik.isSubmitting}
- error={isDescriptionTooLong}
- helperText={`${descriptionLength}/${maxAlbumDescriptionLength}`}
- />
- <Stack direction="row" sx={{ gap: "12px", mt: 3 }}>
- <FocusVisibleButton
- type="button"
+ <>
+ <Dialog
+ open={open}
+ onClose={
+ pickCoverPhotoVisibilityProps.open ? undefined : handleClose
+ }
+ aria-labelledby={titleID}
+ maxWidth="xs"
+ fullWidth
+ slotProps={{ paper: { sx: { p: "8px 4px 4px 4px" } } }}
+ >
+ <DialogTitle id={titleID}>{t("edit_details")}</DialogTitle>
+ <DialogContent sx={{ "&&&": { pt: 0 } }}>
+ <Stack component="form" onSubmit={formik.handleSubmit}>
+ {canShowCoverEditor && (
+ <Stack
+ direction="row"
+ sx={{ alignItems: "center", gap: 2, mt: 2 }}
+ >
+ <ItemCard
+ key={effectiveCoverFile?.id}
+ TileComponent={PreviewItemTile}
+ coverFile={effectiveCoverFile}
+ />
+ <Typography sx={{ flex: 1, minWidth: 0 }}>
+ {t("album_cover")}
+ </Typography>
+ <FocusVisibleButton
+ type="button"
+ color="secondary"
+ disabled={formik.isSubmitting}
+ onClick={showPickCoverPhoto}
+ >
+ {t("set_cover")}
+ </FocusVisibleButton>
+ </Stack>
+ )}
+ <TextField
+ name="name"
+ value={formik.values.name}
+ onChange={formik.handleChange}
+ label={t("album_name")}
+ autoFocus
fullWidth
- color="secondary"
+ margin="normal"
disabled={formik.isSubmitting}
- onClick={handleClose}
- >
- {t("cancel")}
- </FocusVisibleButton>
- <LoadingButton
- type="submit"
+ error={!trimmedName}
+ helperText={!trimmedName ? t("required") : " "}
+ />
+ <TextField
+ name="description"
+ value={formik.values.description}
+ onChange={formik.handleChange}
+ label={t("description")}
+ placeholder={t("caption_placeholder")}
+ multiline
+ minRows={5}
fullWidth
- color="primary"
- loading={formik.isSubmitting}
- disabled={isSaveDisabled}
- >
- {t("save_changes")}
- </LoadingButton>
+ disabled={formik.isSubmitting}
+ error={isDescriptionTooLong}
+ helperText={`${descriptionLength}/${maxAlbumDescriptionLength}`}
+ />
+ <Stack direction="row" sx={{ gap: "12px", mt: 3 }}>
+ <FocusVisibleButton
+ type="button"
+ fullWidth
+ color="secondary"
+ disabled={formik.isSubmitting}
+ onClick={handleClose}
+ >
+ {t("cancel")}
+ </FocusVisibleButton>
+ <LoadingButton
+ type="submit"
+ fullWidth
+ color="primary"
+ loading={formik.isSubmitting}
+ disabled={isSaveDisabled}
+ >
+ {t("save_changes")}
+ </LoadingButton>
+ </Stack>
</Stack>
- </Stack>
- </DialogContent>
- </Dialog>
+ </DialogContent>
+ </Dialog>
+ {canShowCoverEditor && (
+ <PickCoverPhotoDialog
+ {...pickCoverPhotoVisibilityProps}
+ collection={collection}
+ files={files}
+ user={user}
+ canResetToDefault={effectiveCoverID > 0}
+ onUseSelectedPhoto={handleUseSelectedPhoto}
+ onResetToDefault={handleResetToDefault}
+ />
+ )}
+ </>
);
};
diff --git a/web/apps/photos/src/components/Collections/GalleryBarAndListHeader.tsx b/web/apps/photos/src/components/Collections/GalleryBarAndListHeader.tsx
index 5b60d83103..cc0d3ddd1a 100644
--- a/web/apps/photos/src/components/Collections/GalleryBarAndListHeader.tsx
+++ b/web/apps/photos/src/components/Collections/GalleryBarAndListHeader.tsx
@@ -63,11 +63,7 @@ type GalleryBarAndListHeaderProps = Omit<
canCreateAlbum: boolean;
} & Pick<
CollectionHeaderProps,
- | "onRemotePull"
- | "onAddSaveGroup"
- | "canSetAlbumCover"
- | "onSetAlbumCover"
- | "onShowMap"
+ "onRemotePull" | "onAddSaveGroup" | "onEditAlbumDetails" | "onShowMap"
> &
Pick<
CollectionShareProps,
@@ -97,8 +93,7 @@ export const GalleryBarAndListHeader: React.FC<
emailByUserID,
shareSuggestionEmails,
onRemotePull,
- canSetAlbumCover,
- onSetAlbumCover,
+ onEditAlbumDetails,
onAddSaveGroup,
onShowMap,
setFileListHeader,
@@ -190,8 +185,7 @@ export const GalleryBarAndListHeader: React.FC<
onCollectionShare={openCollectionShare}
onCollectionManageLink={openCollectionManageLink}
onCollectionCast={showCollectionCast}
- canSetAlbumCover={canSetAlbumCover}
- onSetAlbumCover={onSetAlbumCover}
+ onEditAlbumDetails={onEditAlbumDetails}
hasActiveFileSelection={hasActiveFileSelection}
/>
) : mode != "people" && collectionSummary ? (
@@ -228,8 +222,7 @@ export const GalleryBarAndListHeader: React.FC<
onRemotePull,
onAddSaveGroup,
onShowMap,
- canSetAlbumCover,
- onSetAlbumCover,
+ onEditAlbumDetails,
// TODO: Cluster
// This causes a loop since it is an array dep
// people,
diff --git a/web/apps/photos/src/pages/gallery.tsx b/web/apps/photos/src/pages/gallery.tsx
index 4e9aef1199..55eff12782 100644
--- a/web/apps/photos/src/pages/gallery.tsx
+++ b/web/apps/photos/src/pages/gallery.tsx
@@ -9,8 +9,11 @@ import {
type CollectionSelectorAttributes,
} from "@/components/CollectionSelector";
import { CollectionMapDialog } from "@/components/Collections/CollectionMapDialog";
+import {
+ EditAlbumDetailsDialog,
+ type AlbumDetails,
+} from "@/components/Collections/EditAlbumDetailsDialog";
import { GalleryBarAndListHeader } from "@/components/Collections/GalleryBarAndListHeader";
-import { PickCoverPhotoDialog } from "@/components/Collections/PickCoverPhotoDialog";
import { Export } from "@/components/Export";
import { FamilyManagement } from "@/components/FamilyManagement";
import type { FileListHeaderOrFooter } from "@/components/FileList";
@@ -92,7 +95,7 @@ import { FullScreenDropZone } from "ente-gallery/components/FullScreenDropZone";
import type { UploadTypeSelectorIntent } from "ente-gallery/components/Upload";
import { useSaveGroups } from "ente-gallery/components/utils/save-groups";
import type { FileViewerInitialSidebar } from "ente-gallery/components/viewer/FileViewer";
-import { CollectionSubType, type Collection } from "ente-media/collection";
+import type { Collection } from "ente-media/collection";
import type { EnteFile } from "ente-media/file";
import { ItemVisibility, metadataHash } from "ente-media/file-metadata";
import { AssignPersonDialog } from "ente-new/photos/components/AssignPersonDialog";
@@ -112,7 +115,9 @@ import {
createQuickLinkCollection,
removeFromCollection,
removeFromFavoritesCollection,
+ renameCollection,
updateCollectionCover,
+ updateCollectionDescription,
} from "ente-new/photos/services/collection";
import {
haveOnlySystemCollections,
@@ -282,8 +287,8 @@ const Page: React.FC = () => {
const { show: showEditLocation, props: editLocationVisibilityProps } =
useModalVisibility();
const {
- show: showPickCoverPhotoDialog,
- props: pickCoverPhotoDialogVisibilityProps,
+ show: showEditAlbumDetails,
+ props: editAlbumDetailsVisibilityProps,
} = useModalVisibility();
const { show: showCollectionMap, props: collectionMapVisibilityProps } =
useModalVisibility();
@@ -413,29 +418,6 @@ const Page: React.FC = () => {
[state.collectionFiles],
);
- const isOwnedAlbumEligibleForCover = useMemo(() => {
- if (
- isInSearchMode ||
- !activeCollection ||
- !activeCollectionSummary ||
- !user
- )
- return false;
-
- if (activeCollection.owner.id != user.id) return false;
- if (
- activeCollection.magicMetadata?.data.subType ==
- CollectionSubType.quicklink
- ) {
- return false;
- }
-
- return (
- activeCollectionSummary.attributes.has("album") ||
- activeCollectionSummary.attributes.has("folder")
- );
- }, [isInSearchMode, activeCollection, activeCollectionSummary, user]);
-
const activeCollectionFiles = useMemo(() => {
if (!activeCollection) return [];
if (barMode == "hidden-albums" || barMode == "archive-albums") {
@@ -714,7 +696,7 @@ const Page: React.FC = () => {
exportVisibilityProps.open ||
authenticateUserVisibilityProps.open ||
albumNameInputVisibilityProps.open ||
- pickCoverPhotoDialogVisibilityProps.open ||
+ editAlbumDetailsVisibilityProps.open ||
isFileViewerOpen
) {
return;
@@ -1507,34 +1489,41 @@ const Page: React.FC = () => {
[favoriteFileIDs, selected],
);
- const handleUpdateCollectionCover = useCallback(
- async (coverID: number) => {
- if (!activeCollection || !isOwnedAlbumEligibleForCover)
- return false;
+ const handleEditAlbumDetails = useCallback(
+ async ({ name, description, coverID }: AlbumDetails) => {
+ if (!activeCollection) return;
- showLoadingBar();
+ let didAttemptWrite = false;
try {
- await updateCollectionCover(activeCollection, coverID);
- await remotePull({
- silent: true,
- source: "update-collection-cover",
- });
- return true;
- } catch (e) {
- onGenericError(e);
- return false;
+ if (activeCollection.name != name) {
+ didAttemptWrite = true;
+ await renameCollection(activeCollection, name);
+ }
+ if (
+ (
+ activeCollection.pubMagicMetadata?.data.caption ?? ""
+ ).trim() != description
+ ) {
+ didAttemptWrite = true;
+ await updateCollectionDescription(
+ activeCollection,
+ description,
+ );
+ }
+ if (coverID !== undefined) {
+ didAttemptWrite = true;
+ await updateCollectionCover(activeCollection, coverID);
+ }
} finally {
- hideLoadingBar();
+ if (didAttemptWrite) {
+ await remotePull({
+ silent: true,
+ source: "update-album-details",
+ });
+ }
}
},
- [
- activeCollection,
- isOwnedAlbumEligibleForCover,
- showLoadingBar,
- remotePull,
- onGenericError,
- hideLoadingBar,
- ],
+ [activeCollection, remotePull],
);
const handleContextMenuAction = useCallback(
@@ -1720,21 +1709,6 @@ const Page: React.FC = () => {
],
);
- const handleOpenPickCoverPhotoDialog = useCallback(() => {
- if (!isOwnedAlbumEligibleForCover) return;
- showPickCoverPhotoDialog();
- }, [isOwnedAlbumEligibleForCover, showPickCoverPhotoDialog]);
-
- const handleUseSelectedCoverPhoto = useCallback(
- async (file: EnteFile) => handleUpdateCollectionCover(file.id),
- [handleUpdateCollectionCover],
- );
-
- const handleResetCollectionCover = useCallback(
- async () => handleUpdateCollectionCover(0),
- [handleUpdateCollectionCover],
- );
-
const handleCloseCollectionSelector = useCallback(
() => setOpenCollectionSelector(false),
[],
@@ -1942,8 +1916,7 @@ const Page: React.FC = () => {
saveGroups,
canCreateAlbum: !isInArchiveSection,
onAddSaveGroup,
- canSetAlbumCover: isOwnedAlbumEligibleForCover,
- onSetAlbumCover: handleOpenPickCoverPhotoDialog,
+ onEditAlbumDetails: showEditAlbumDetails,
onShowMap: handleShowCollectionMap,
}}
mode={barMode}
@@ -2110,18 +2083,15 @@ const Page: React.FC = () => {
onSelectPerson={handleSelectPerson}
/>
)}
- {activeCollection && (
- <PickCoverPhotoDialog
- {...pickCoverPhotoDialogVisibilityProps}
+ {activeCollection && editAlbumDetailsVisibilityProps.open && (
+ <EditAlbumDetailsDialog
+ key={activeCollection.id}
+ {...editAlbumDetailsVisibilityProps}
collection={activeCollection}
files={activeCollectionFiles}
+ initialCoverFile={activeCollectionSummary?.coverFile}
user={user}
- canResetToDefault={
- (activeCollection.pubMagicMetadata?.data.coverID ?? 0) >
- 0
- }
- onUseSelectedPhoto={handleUseSelectedCoverPhoto}
- onResetToDefault={handleResetCollectionCover}
+ onSubmit={handleEditAlbumDetails}
/>
)}
<Export {...exportVisibilityProps} {...{ collectionNameByID }} />
diff --git a/web/packages/base/locales/en-US/translation.json b/web/packages/base/locales/en-US/translation.json
index 726c67a774..e32b6e3e87 100644
--- a/web/packages/base/locales/en-US/translation.json
+++ b/web/packages/base/locales/en-US/translation.json
@@ -438,6 +438,7 @@
"mail_to_manage_subscription": "Please contact us at <a>{{emailID}}</a> to manage your subscription",
"rename": "Rename",
"rename_file": "Rename file",
+ "album_cover": "Album cover",
"set_cover": "Set cover",
"select_cover_photo": "Select cover photo",
"reset_to_default": "Reset to default",