π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Show the error inline
Manav Rathi71982d5557b6
diff --git a/web/packages/new/photos/components/gallery/PeopleHeader.tsx b/web/packages/new/photos/components/gallery/PeopleHeader.tsxindex e493587c34..7cd148506f 100644--- a/web/packages/new/photos/components/gallery/PeopleHeader.tsx+++ b/web/packages/new/photos/components/gallery/PeopleHeader.tsx@@ -87,7 +87,7 @@ const CGroupPersonHeader: React.FC<CGroupPersonHeaderProps> = ({renameCGroup(cgroup, name),);- const handleDeletePerson = () =>+ const handleReset = () =>showMiniDialog({title: pt("Reset person?"),message: pt(@@ -96,16 +96,14 @@ const CGroupPersonHeader: React.FC<CGroupPersonHeaderProps> = ({continue: {text: t("reset"),color: "primary",- action: deletePerson,+ action: async () => {+ await deleteCGroup(cgroup);+ // Reset the selection to the default state.+ onSelectPerson(undefined);+ },},});- const deletePerson = useWrapAsyncOperation(async () => {- await deleteCGroup(cgroup);- // Reset the selection to the default state.- onSelectPerson(undefined);- });-// While technically it is possible for the cgroup not to have a name,// logical wise we shouldn't be ending up here without a name.const name = cgroup.data.name ?? "";@@ -130,7 +128,7 @@ const CGroupPersonHeader: React.FC<CGroupPersonHeaderProps> = ({<OverflowMenuOptionstartIcon={<ClearIcon />}centerAlign- onClick={handleDeletePerson}+ onClick={handleReset}>{pt("Reset")}</OverflowMenuOption>