A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
mobile: copy actual error message for incomplete theme file uploads
kashaf-ansari-dev7adc5fbf1edc
diff --git a/apps/mobile/app/screens/settings/theme-selector.tsx b/apps/mobile/app/screens/settings/theme-selector.tsxindex c479ce9d0..8193b40c6 100644--- a/apps/mobile/app/screens/settings/theme-selector.tsx+++ b/apps/mobile/app/screens/settings/theme-selector.tsx@@ -64,6 +64,7 @@ import { MenuItemsList } from "../../utils/menu-items";import { AppFontSize, defaultBorderRadius } from "../../utils/size";import { DefaultAppStyles } from "../../utils/styles";import { openLinkInBrowser } from "../../utils/functions";+import Clipboard from "@react-native-clipboard/clipboard";const THEME_SERVER_URL = "https://themes-api.notesnook.com";//@ts-ignore@@ -470,11 +471,14 @@ function ThemeSelector() {heading: strings.themeMissingRequiredFields(),type: "error",context: "global",- actionText: strings.learnMore(),+ actionText: strings.copyLogs(),func: () => {- openLinkInBrowser(- "https://help.notesnook.com/custom-themes/introduction"- );+ Clipboard.setString(result.error || "");+ ToastManager.show({+ heading: strings.logsCopied(),+ type: "success",+ context: "global"+ });}});} else {diff --git a/packages/intl/locale/en.po b/packages/intl/locale/en.poindex 2c0ed85e4..33aac399f 100644--- a/packages/intl/locale/en.po+++ b/packages/intl/locale/en.po@@ -1868,6 +1868,10 @@ msgstr "Copy link"msgid "Copy link text"msgstr "Copy link text"+#: src/strings.ts:2694+msgid "Copy logs"+msgstr "Copy logs"+#: src/strings.ts:454msgid "Copy note"msgstr "Copy note"diff --git a/packages/intl/locale/pseudo-LOCALE.po b/packages/intl/locale/pseudo-LOCALE.poindex 89b9590d1..20a8dae61 100644--- a/packages/intl/locale/pseudo-LOCALE.po+++ b/packages/intl/locale/pseudo-LOCALE.po@@ -1857,6 +1857,10 @@ msgstr ""msgid "Copy link text"msgstr ""+#: src/strings.ts:2694+msgid "Copy logs"+msgstr ""+#: src/strings.ts:454msgid "Copy note"msgstr ""diff --git a/packages/intl/src/strings.ts b/packages/intl/src/strings.tsindex c629e2d09..aeb5e97f1 100644--- a/packages/intl/src/strings.ts+++ b/packages/intl/src/strings.ts@@ -2699,5 +2699,6 @@ Continue without attachments?`,invalidThemeFileFormat: () =>t`We couldn't load this theme. Please make sure the file is a valid JSON theme file.`,themeMissingRequiredFields: () =>- t`We couldn't load this theme. The file appears to be incomplete or missing required theme properties.`+ t`We couldn't load this theme. The file appears to be incomplete or missing required theme properties.`,+ copyLogs: () => t`Copy logs`};