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: show toast message after attachment deleted
Ammar Ahmed6de4b4ac2d55
diff --git a/apps/mobile/app/components/attachments/actions.tsx b/apps/mobile/app/components/attachments/actions.tsxindex c156e35e6..d8b198d7e 100644--- a/apps/mobile/app/components/attachments/actions.tsx+++ b/apps/mobile/app/components/attachments/actions.tsx@@ -191,6 +191,10 @@ const Actions = ({.to(attachment, "note").get();await db.attachments.remove(attachment.hash, false);+ ToastManager.show({+ type: "success",+ message: strings.attachmentDeleted()+ });setAttachments();eSendEvent(eDBItemUpdate, attachment.id);relationsdiff --git a/packages/intl/locale/en.po b/packages/intl/locale/en.poindex d7d84298e..22077ef22 100644--- a/packages/intl/locale/en.po+++ b/packages/intl/locale/en.po@@ -992,6 +992,10 @@ msgstr "attachment"msgid "Attachment"msgstr "Attachment"+#: src/strings.ts:2663+msgid "Attachment deleted"+msgstr "Attachment deleted"+#: src/strings.ts:2458msgid "Attachment manager"msgstr "Attachment manager"diff --git a/packages/intl/locale/pseudo-LOCALE.po b/packages/intl/locale/pseudo-LOCALE.poindex 6e7473b41..76ee7a81b 100644--- a/packages/intl/locale/pseudo-LOCALE.po+++ b/packages/intl/locale/pseudo-LOCALE.po@@ -992,6 +992,10 @@ msgstr ""msgid "Attachment"msgstr ""+#: src/strings.ts:2663+msgid "Attachment deleted"+msgstr ""+#: src/strings.ts:2458msgid "Attachment manager"msgstr ""diff --git a/packages/intl/src/strings.ts b/packages/intl/src/strings.tsindex 3e9657003..927e7be4e 100644--- a/packages/intl/src/strings.ts+++ b/packages/intl/src/strings.ts@@ -2663,5 +2663,6 @@ Use this if changes from other devices are not appearing on this device. This wigiftCodeRequired: () => t`Gift code required`,deleteAttachment: () => t`Delete attachment`,deleteAttachmentConfirm: () =>- t`Are you sure you want to delete this attachment?`+ t`Are you sure you want to delete this attachment?`,+ attachmentDeleted: () => t`Attachment deleted`};