mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 23:19:40 +01:00
show toast quick access menu
This commit is contained in:
@@ -46,7 +46,7 @@ export const deleteItems = async (item) => {
|
|||||||
let message = history.selectedItemsList.length + msgPart + ' moved to trash.';
|
let message = history.selectedItemsList.length + msgPart + ' moved to trash.';
|
||||||
|
|
||||||
let itemsCopy = [...history.selectedItemsList];
|
let itemsCopy = [...history.selectedItemsList];
|
||||||
if (history.selectedItemsList[0].type !== 'topic') {
|
if (topics.length === 0 && (notes.length > 0 || notebooks.length > 0)) {
|
||||||
ToastEvent.show(
|
ToastEvent.show(
|
||||||
message,
|
message,
|
||||||
'error',
|
'error',
|
||||||
@@ -73,4 +73,4 @@ export const deleteItems = async (item) => {
|
|||||||
updateEvent({type: Actions.TRASH});
|
updateEvent({type: Actions.TRASH});
|
||||||
updateEvent({type: Actions.CLEAR_SELECTION});
|
updateEvent({type: Actions.CLEAR_SELECTION});
|
||||||
updateEvent({type: Actions.SELECTION_MODE, enabled: false});
|
updateEvent({type: Actions.SELECTION_MODE, enabled: false});
|
||||||
}
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user