Skip to content

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

mobile: action strip functions for reminders

ammarahm-eda2c875accacf
diff --git a/apps/mobile/app/components/list-items/selection-wrapper/action-strip.js b/apps/mobile/app/components/list-items/selection-wrapper/action-strip.js
index 0c56e15a8..71fde4e1f 100644
--- a/apps/mobile/app/components/list-items/selection-wrapper/action-strip.js
+++ b/apps/mobile/app/components/list-items/selection-wrapper/action-strip.js
@@ -100,6 +100,7 @@ export const ActionStrip = ({ note, setActionStrip }) => {
? "Remove Shortcut from Menu"
: "Add Shortcut to Menu",
icon: isPinnedToMenu ? "link-variant-remove" : "link-variant",
+ visible: note.type !== "reminder",
onPress: async () => {
try {
if (isPinnedToMenu) {
@@ -223,6 +224,21 @@ export const ActionStrip = ({ note, setActionStrip }) => {
icon: "delete",
visible: note.type !== "trash",
onPress: async () => {
+ if (note.type === "reminder") {
+ presentDialog({
+ title: `Delete ${note.type}`,
+ paragraph: "This reminder will be removed",
+ positivePress: async () => {
+ const routes = [];
+ await db.reminders.remove(note.id);
+ routes.push("Reminders");
+ Navigation.queueRoutesForUpdate(...routes);
+ },
+ positiveText: "Delete",
+ positiveType: "errorShade"
+ });
+ return;
+ }
try {
await deleteItems(note);
} catch (e) {