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
multi-select unfavorite
ammarahm-ed6565b0d39b11
diff --git a/apps/mobile/src/components/SelectionHeader/index.js b/apps/mobile/src/components/SelectionHeader/index.jsindex 294879fe0..b1e77753a 100644--- a/apps/mobile/src/components/SelectionHeader/index.js+++ b/apps/mobile/src/components/SelectionHeader/index.js@@ -7,7 +7,11 @@ import {useTracked} from '../../provider';import {Actions} from '../../provider/Actions';import {eSendEvent, ToastEvent} from '../../services/EventManager';import {db} from '../../utils/DB';-import {eOpenMoveNoteDialog, eOpenSimpleDialog} from '../../utils/Events';+import {+ eOpenMoveNoteDialog,+ eOpenSimpleDialog,+ refreshNotesPage,+} from '../../utils/Events';import {SIZE} from '../../utils/SizeUtils';import {sleep} from '../../utils/TimeUtils';import {ActionIcon} from '../ActionIcon';@@ -118,6 +122,29 @@ export const SelectionHeader = () => {/>)}+ {currentScreen === 'favorites' ? (+ <ActionIcon+ onPress={async () => {+ if (selectedItemsList.length > 0) {+ selectedItemsList.forEach((item) => {+ db.notes.note(item.id).favorite();+ });+ dispatch({type: Actions.FAVORITES});+ eSendEvent(refreshNotesPage);+ dispatch({type: Actions.NOTES});+ dispatch({type: Actions.SELECTION_MODE, enabled: false});+ dispatch({type: Actions.CLEAR_SELECTION});+ }+ }}+ customStyle={{+ marginLeft: 10,+ }}+ color={colors.heading}+ name="star-off"+ size={SIZE.xl}+ />+ ) : null}+{currentScreen === 'trash' ? null : (<ActionIconcustomStyle={{