Skip to content

armgit / ente

Public Imported from GitHub
0

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

Move

Manav Rathi66fc440d1bcd
diff --git a/web/apps/photos/src/components/Sidebar/MapSettings.tsx b/web/apps/photos/src/components/Sidebar/MapSettings.tsx
index 066b04b31e..f858525700 100644
--- a/web/apps/photos/src/components/Sidebar/MapSettings.tsx
+++ b/web/apps/photos/src/components/Sidebar/MapSettings.tsx
@@ -112,19 +112,12 @@ const ModifyMapSettings = ({ open, onClose, onRootClose, mapEnabled }) => {
onRootClose();
};
- const errorIndicator = phase == "failed" && (
- <Typography variant="small" color="critical.main">
- {t("generic_error")}
- </Typography>
- );
-
return (
<NestedSidebarDrawer
{...{ open }}
onClose={handleClose}
onRootClose={handleRootClose}
>
- {errorIndicator}
{mapEnabled ? (
<ConfirmDisableMap
onClose={handleClose}
@@ -183,6 +176,11 @@ const ConfirmEnableMap: React.FC<ConfirmStepProps> = ({
</Typography>
</Box>
<Stack px={"8px"} spacing={"8px"}>
+ {phase == "failed" && (
+ <Typography variant="small" color="critical.main">
+ {t("generic_error")}
+ </Typography>
+ )}
<LoadingButton
loading={phase == "loading"}
color={"accent"}
@@ -222,6 +220,11 @@ const ConfirmDisableMap: React.FC<ConfirmStepProps> = ({
</Typography>
</Box>
<Stack px={"8px"} spacing={"8px"}>
+ {phase == "failed" && (
+ <Typography variant="small" color="critical.main">
+ {t("generic_error")}
+ </Typography>
+ )}
<LoadingButton
loading={phase == "loading"}
color={"critical"}