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
fix multiple item delete
ammarahm-ed8d5f20827c72
diff --git a/apps/mobile/src/components/Dialog/index.js b/apps/mobile/src/components/Dialog/index.jsindex 30d91f55b..09e394203 100644--- a/apps/mobile/src/components/Dialog/index.js+++ b/apps/mobile/src/components/Dialog/index.js@@ -5,6 +5,7 @@ import {DDS} from '../../services/DeviceDetection';import {ToastEvent} from '../../services/EventManager';import {getElevation, history} from '../../utils';import {db} from '../../utils/DB';+import { deleteItems } from '../../utils/functions';import {ph, pv} from '../../utils/SizeUtils';import {dialogActions} from '../DialogManager/DialogActions';import {updateEvent} from '../DialogManager/recievers';@@ -25,6 +26,10 @@ export class Dialog extends Component {_onPress = async () => {let {template, item} = this.props;switch (template.action) {+ case dialogActions.ACTION_DELETE:+ deleteItems();+ this.hide();+ break;case dialogActions.ACTION_PERMANANT_DELETE: {if (item.dateCreated && history.selectedItemsList.length === 0) {history.selectedItemsList = [];