From f40c277aa898b578431e43d91bf764371701dd8f Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Mon, 24 Jun 2024 11:00:45 +0530 Subject: [PATCH] Show in sidebar --- .../photos/src/components/Sidebar/index.tsx | 29 +++++++++---------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/web/apps/photos/src/components/Sidebar/index.tsx b/web/apps/photos/src/components/Sidebar/index.tsx index 32665b7120..5f49690335 100644 --- a/web/apps/photos/src/components/Sidebar/index.tsx +++ b/web/apps/photos/src/components/Sidebar/index.tsx @@ -1,5 +1,6 @@ import log from "@/next/log"; import { savedLogs } from "@/next/log-web"; +import { customAPIOrigin } from "@/next/origins"; import { openAccountsManagePasskeysPage } from "@ente/accounts/services/passkey"; import { SpaceBetweenFlex } from "@ente/shared/components/Container"; import { EnteLogo } from "@ente/shared/components/EnteLogo"; @@ -685,6 +686,8 @@ const DebugSection: React.FC = () => { electron?.appVersion().then((v) => setAppVersion(v)); }); + const origin = customAPIOrigin(); + const confirmLogDownload = () => appContext.setDialogMessage({ title: t("DOWNLOAD_LOGS"), @@ -707,21 +710,6 @@ const DebugSection: React.FC = () => { return ( <> - - {appVersion && ( - - {appVersion} - - )} {isInternalUserViaEmailCheck() && ( { label={"Test Upload"} /> )} + + + {appVersion && ( + {appVersion} + )} + {origin && {origin}} + ); };