π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Use standard message as elsewhere
Manav Rathi833e985d62ca
diff --git a/web/apps/photos/src/components/pages/gallery/PlanSelector.tsx b/web/apps/photos/src/components/pages/gallery/PlanSelector.tsxindex 1f1fb032c8..35676ff9f7 100644--- a/web/apps/photos/src/components/pages/gallery/PlanSelector.tsx+++ b/web/apps/photos/src/components/pages/gallery/PlanSelector.tsx@@ -1,3 +1,4 @@+import { genericRetriableErrorDialogAttributes } from "@/base/components/utils/dialog";import log from "@/base/log";import { AppContext } from "@/new/photos/types/context";import { bytesInGB, formattedStorageByteSize } from "@/new/photos/utils/units";@@ -159,16 +160,9 @@ function PlanSelectorCard(props: PlanSelectorCardProps) {} catch (e) {log.error("plan selector modal open failed", e);props.closeModal();- appContext.setDialogMessage({- title: t("OPEN_PLAN_SELECTOR_MODAL_FAILED"),- content: t("generic_error_retry"),- close: { text: t("close"), variant: "secondary" },- proceed: {- text: t("REOPEN_PLAN_SELECTOR_MODAL"),- variant: "accent",- action: onReopenClick,- },- });+ appContext.showMiniDialog(+ genericRetriableErrorDialogAttributes(),+ );} finally {props.setLoading(false);}diff --git a/web/packages/base/components/utils/dialog.tsx b/web/packages/base/components/utils/dialog.tsxindex 99b8ee8c50..340830b77d 100644--- a/web/packages/base/components/utils/dialog.tsx+++ b/web/packages/base/components/utils/dialog.tsx@@ -61,3 +61,6 @@ export const errorDialogAttributes = (export const genericErrorDialogAttributes = () =>errorDialogAttributes(t("generic_error"));++export const genericRetriableErrorDialogAttributes = () =>+ errorDialogAttributes(t("generic_error_retry"));diff --git a/web/packages/base/locales/en-US/translation.json b/web/packages/base/locales/en-US/translation.jsonindex 53e75234fc..e54390813f 100644--- a/web/packages/base/locales/en-US/translation.json+++ b/web/packages/base/locales/en-US/translation.json@@ -355,8 +355,6 @@"DATE_TIME_DIGITIZED": "Exif:DateTimeDigitized","METADATA_DATE": "Exif:MetadataDate","CUSTOM_TIME": "Custom time",- "REOPEN_PLAN_SELECTOR_MODAL": "Re-open plans",- "OPEN_PLAN_SELECTOR_MODAL_FAILED": "Failed to open plans","sharing_details": "Sharing details","modify_sharing": "Modify sharing","ADD_COLLABORATORS": "Add collaborators",