From e7732d0e1828eed6f529fa91113b16f34962ae53 Mon Sep 17 00:00:00 2001 From: pengx17 Date: Tue, 5 Nov 2024 07:31:00 +0000 Subject: [PATCH] fix(core): update prompt texts for opening new doc (#8696) fix AF-1590 --- .../modules/open-in-app/views/open-in-app-page.tsx | 12 +++++++++--- packages/frontend/i18n/src/resources/en.json | 1 + 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/packages/frontend/core/src/modules/open-in-app/views/open-in-app-page.tsx b/packages/frontend/core/src/modules/open-in-app/views/open-in-app-page.tsx index 6f86981e90..5377ed5627 100644 --- a/packages/frontend/core/src/modules/open-in-app/views/open-in-app-page.tsx +++ b/packages/frontend/core/src/modules/open-in-app/views/open-in-app-page.tsx @@ -116,9 +116,15 @@ export const OpenInAppPage = ({ urlToOpen, openHereClicked }: OpenAppProps) => { {appName}
- - Open {appName} app now - + {openHereClicked ? ( + + This doc is now opened in {appName} + + ) : ( + + Open {appName} app now + + )}
diff --git a/packages/frontend/i18n/src/resources/en.json b/packages/frontend/i18n/src/resources/en.json index 9c1fe9979f..0dc5eee29b 100644 --- a/packages/frontend/i18n/src/resources/en.json +++ b/packages/frontend/i18n/src/resources/en.json @@ -227,6 +227,7 @@ "com.affine.auth.open.affine": "Open AFFiNE", "com.affine.auth.open.affine.download-app": "Download app", "com.affine.auth.open.affine.prompt": "Opening <1>AFFiNE app now", + "com.affine.auth.open.affine.open-doc-prompt": "This doc is now opened in <1>AFFiNE app", "com.affine.auth.open.affine.try-again": "Try again", "com.affine.auth.open.affine.doc.open-here": "Open here instead", "com.affine.auth.open.affine.doc.edit-settings": "Edit settings",