π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[photos][web] Remove redundant sidebar creation flag
AswinAsok01740dc2818e
diff --git a/web/apps/photos/src/components/Collections/GalleryBarAndListHeader.tsx b/web/apps/photos/src/components/Collections/GalleryBarAndListHeader.tsxindex ef2db97992..9570cb50a2 100644--- a/web/apps/photos/src/components/Collections/GalleryBarAndListHeader.tsx+++ b/web/apps/photos/src/components/Collections/GalleryBarAndListHeader.tsx@@ -404,7 +404,6 @@ export const GalleryBarAndListHeader: React.FC<onSelectPerson={selectPerson}onChangeCollectionsSortBy={setCollectionsSortBy}onChangePeopleSortBy={onChangePeopleSortBy}- canCreateAlbum={canCreateAlbum}onCreateAlbum={openAlbumCreation}onShowAllAlbums={showAllAlbums}onShowAllPeople={showAllPeople}diff --git a/web/apps/photos/src/components/gallery/BarImpl.tsx b/web/apps/photos/src/components/gallery/BarImpl.tsxindex 2248b09104..495d1d06c4 100644--- a/web/apps/photos/src/components/gallery/BarImpl.tsx+++ b/web/apps/photos/src/components/gallery/BarImpl.tsx@@ -83,7 +83,6 @@ export interface GalleryBarImplProps extends GalleryBarPresentationProps {activeCollectionID: number | undefined;onSelectCollectionID: (collectionID: number) => void;onShowAllAlbums: () => void;- canCreateAlbum: boolean;onCreateAlbum: () => void;onShowAllPeople: () => void;collectionsSortBy: CollectionsSortBy;@@ -109,7 +108,6 @@ export const GalleryBarImpl: React.FC<GalleryBarImplProps> = ({activeCollectionID,onSelectCollectionID,onShowAllAlbums,- canCreateAlbum,onCreateAlbum,onShowAllPeople,collectionsSortBy,@@ -396,21 +394,20 @@ export const GalleryBarImpl: React.FC<GalleryBarImplProps> = ({<ExpandMoreIcon sx={{ fontSize: 20 }} /></IconButton></Tooltip>- {canCreateAlbum &&- (mode == "albums" || mode == "hidden-albums") && (- <Tooltip title={t("new_album")}>- <IconButton- aria-label={t("new_album")}- aria-haspopup="dialog"- onClick={() => {- mobileDrawerProps.onClose();- onCreateAlbum();- }}- >- <AddIcon sx={{ fontSize: 20 }} />- </IconButton>- </Tooltip>- )}+ {(mode == "albums" || mode == "hidden-albums") && (+ <Tooltip title={t("new_album")}>+ <IconButton+ aria-label={t("new_album")}+ aria-haspopup="dialog"+ onClick={() => {+ mobileDrawerProps.onClose();+ onCreateAlbum();+ }}+ >+ <AddIcon sx={{ fontSize: 20 }} />+ </IconButton>+ </Tooltip>+ )}{mobile && (<IconButtonaria-label={t("close")}