Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

web: clicking on "auto backups disabled" notice should open settings

Abdullah Attaf20c1ef4f4c3
diff --git a/apps/web/src/common/notices.ts b/apps/web/src/common/notices.ts
index b58fcd3a6..0764dbd97 100644
--- a/apps/web/src/common/notices.ts
+++ b/apps/web/src/common/notices.ts
@@ -29,6 +29,7 @@ import { TaskScheduler } from "../utils/task-scheduler";
import { BuyDialog } from "../dialogs/buy-dialog";
import { RecoveryKeyDialog } from "../dialogs/recovery-key-dialog";
import { strings } from "@notesnook/intl";
+import { SettingsDialog } from "../dialogs/settings";
export type NoticeType = "autoBackupsOff" | "login" | "email" | "recoverykey";
@@ -141,7 +142,7 @@ export const NoticesData: Record<NoticeType, NoticeData> = {
key: "autoBackupsOff",
title: strings.automaticBackupsDisabled(),
subtitle: strings.automaticBackupsDisabledDesc(),
- action: () => BuyDialog.show({}),
+ action: () => SettingsDialog.show({ activeSection: "backup-export" }),
dismissable: true,
icon: Backup
},
diff --git a/packages/intl/locale/en.po b/packages/intl/locale/en.po
index fbeed7a9f..a6f8a4efd 100644
--- a/packages/intl/locale/en.po
+++ b/packages/intl/locale/en.po
@@ -4412,6 +4412,10 @@ msgstr "Please confirm your identity by entering the authentication code sent to
msgid "Please download a backup of your data as your account will be cleared before recovery."
msgstr "Please download a backup of your data as your account will be cleared before recovery."
+#: src/strings.ts:2006
+msgid "Please enable automatic backups to avoid losing important data."
+msgstr "Please enable automatic backups to avoid losing important data."
+
#: src/strings.ts:1511
msgid "Please enter a valid email address"
msgstr "Please enter a valid email address"
@@ -4504,10 +4508,6 @@ msgstr "Please set title of the reminder"
msgid "Please try again"
msgstr "Please try again"
-#: src/strings.ts:2006
-msgid "Please upgrade to Pro to enable automatic backups."
-msgstr "Please upgrade to Pro to enable automatic backups."
-
#: src/strings.ts:56
msgid "Please verify it's you"
msgstr "Please verify it's you"
diff --git a/packages/intl/locale/pseudo-LOCALE.po b/packages/intl/locale/pseudo-LOCALE.po
index 907283151..2f1eb20cb 100644
--- a/packages/intl/locale/pseudo-LOCALE.po
+++ b/packages/intl/locale/pseudo-LOCALE.po
@@ -4386,6 +4386,10 @@ msgstr ""
msgid "Please download a backup of your data as your account will be cleared before recovery."
msgstr ""
+#: src/strings.ts:2006
+msgid "Please enable automatic backups to avoid losing important data."
+msgstr ""
+
#: src/strings.ts:1511
msgid "Please enter a valid email address"
msgstr ""
@@ -4478,10 +4482,6 @@ msgstr ""
msgid "Please try again"
msgstr ""
-#: src/strings.ts:2006
-msgid "Please upgrade to Pro to enable automatic backups."
-msgstr ""
-
#: src/strings.ts:56
msgid "Please verify it's you"
msgstr ""
diff --git a/packages/intl/src/strings.ts b/packages/intl/src/strings.ts
index 68f8414a0..73f6bd929 100644
--- a/packages/intl/src/strings.ts
+++ b/packages/intl/src/strings.ts
@@ -2003,7 +2003,7 @@ All attachments will be downloaded & cached again on access.
couldNotClearTrash: () => t`Could not clear trash.`,
automaticBackupsDisabled: () => t`Automatic backups disabled`,
automaticBackupsDisabledDesc: () =>
- t`Please upgrade to Pro to enable automatic backups.`,
+ t`Please enable automatic backups to avoid losing important data.`,
default: () => t`Default`,
minimal: () => t`Minimal`,
custom: () => t`Custom`,