π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[photos][web] Keep direct subscription action in Sidebar
AswinAsok73059f777214
diff --git a/web/apps/photos/src/components/sidebar/Sidebar.tsx b/web/apps/photos/src/components/sidebar/Sidebar.tsxindex 30b6d77fb0..aa010d41e1 100644--- a/web/apps/photos/src/components/sidebar/Sidebar.tsx+++ b/web/apps/photos/src/components/sidebar/Sidebar.tsx@@ -242,6 +242,10 @@ export const Sidebar: React.FC<SidebarProps> = ({const performSidebarAction = useCallback(async (actionID: SidebarActionID) => {if (actionID !== "utility.export") closeSections();+ if (actionID === "subscription") {+ onShowPlanSelector();+ return;+ }return performSidebarRegistryAction(actionID, {onClose,onShowPlanSelector,diff --git a/web/apps/photos/src/services/search/sidebar-search-registry.ts b/web/apps/photos/src/services/search/sidebar-search-registry.tsindex 2be8060a1a..85da3c45a2 100644--- a/web/apps/photos/src/services/search/sidebar-search-registry.ts+++ b/web/apps/photos/src/services/search/sidebar-search-registry.ts@@ -319,10 +319,6 @@ export const performSidebarAction = async (ctx: SidebarActionContext,): Promise<void> => {switch (actionID) {- case "subscription":- ctx.onShowPlanSelector();- return Promise.resolve();-case "utility.account":ctx.showAccount();return Promise.resolve();