From 042c50f09d1f11ace021cbec94d9650b370499ea Mon Sep 17 00:00:00 2001 From: ammarahm-ed Date: Fri, 1 Jan 2021 15:29:10 +0500 Subject: [PATCH] show toast quick access menu --- apps/mobile/src/utils/functions.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/mobile/src/utils/functions.js b/apps/mobile/src/utils/functions.js index 329d14097..a177db41d 100644 --- a/apps/mobile/src/utils/functions.js +++ b/apps/mobile/src/utils/functions.js @@ -46,7 +46,7 @@ export const deleteItems = async (item) => { let message = history.selectedItemsList.length + msgPart + ' moved to trash.'; let itemsCopy = [...history.selectedItemsList]; - if (history.selectedItemsList[0].type !== 'topic') { + if (topics.length === 0 && (notes.length > 0 || notebooks.length > 0)) { ToastEvent.show( message, 'error', @@ -73,4 +73,4 @@ export const deleteItems = async (item) => { updateEvent({type: Actions.TRASH}); updateEvent({type: Actions.CLEAR_SELECTION}); updateEvent({type: Actions.SELECTION_MODE, enabled: false}); -} +};