diff --git a/apps/mobile/app/hooks/use-actions.tsx b/apps/mobile/app/hooks/use-actions.tsx index a23dd9c23..8b4bcd9c9 100644 --- a/apps/mobile/app/hooks/use-actions.tsx +++ b/apps/mobile/app/hooks/use-actions.tsx @@ -1188,6 +1188,13 @@ export const useActions = ({ onPress: async () => { if (item.expiryDate?.value) { await db.notes.setExpiryDate(null, item.id); + + ToastManager.show({ + message: strings.expiryDateRemoved(), + type: "success", + context: "local" + }); + setItem((await db.notes.note(item.id)) as Item); } else { if (features && !features?.expiringNotes.isAllowed) { @@ -1211,6 +1218,13 @@ export const useActions = ({ onConfirm={async (date) => { close?.(); await db.notes.setExpiryDate(date.getTime(), item.id); + + ToastManager.show({ + message: strings.expiryDateSet(), + type: "success", + context: "local" + }); + setItem((await db.notes.note(item.id)) as Item); }} /> diff --git a/packages/intl/locale/en.po b/packages/intl/locale/en.po index 752dbf124..8abcecd03 100644 --- a/packages/intl/locale/en.po +++ b/packages/intl/locale/en.po @@ -2783,6 +2783,10 @@ msgstr "Expiry date cannot be more than 1 year in the future" msgid "Expiry date must be in the future" msgstr "Expiry date must be in the future" +#: src/strings.ts:2706 +msgid "Expiry date removed" +msgstr "Expiry date removed" + #: src/strings.ts:2693 msgid "Expiry date set" msgstr "Expiry date set" diff --git a/packages/intl/locale/pseudo-LOCALE.po b/packages/intl/locale/pseudo-LOCALE.po index becdf37c1..1c6b1e689 100644 --- a/packages/intl/locale/pseudo-LOCALE.po +++ b/packages/intl/locale/pseudo-LOCALE.po @@ -2772,6 +2772,10 @@ msgstr "" msgid "Expiry date must be in the future" msgstr "" +#: src/strings.ts:2706 +msgid "Expiry date removed" +msgstr "" + #: src/strings.ts:2693 msgid "Expiry date set" msgstr "" diff --git a/packages/intl/src/strings.ts b/packages/intl/src/strings.ts index d5daa0159..9e6a052e6 100644 --- a/packages/intl/src/strings.ts +++ b/packages/intl/src/strings.ts @@ -2702,5 +2702,6 @@ Continue without attachments?`, t`We couldn't load this theme. The file appears to be incomplete or missing required theme properties.`, copyLogs: () => t`Copy logs`, permissionRequiredToSaveQRCode: () => - t`Permission required to save QR-Code to Gallery` + t`Permission required to save QR-Code to Gallery`, + expiryDateRemoved: () => t`Expiry date removed` };