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
clear infobar on note change
ammarahm-ed93445a20c3d5
diff --git a/apps/mobile/src/views/Editor/InfoBar.js b/apps/mobile/src/views/Editor/InfoBar.jsindex 0b0282846..9d05c5bd6 100644--- a/apps/mobile/src/views/Editor/InfoBar.js+++ b/apps/mobile/src/views/Editor/InfoBar.js@@ -34,6 +34,14 @@ export default class InfoBar extends React.Component {setDateCreated(dateCreated) {this.dateCreated = dateCreated;}+ clear() {+ this.dateCreated = null;+ this.setState({+ saving:false,+ dateEdited:null,+ length:0+ })+ }render() {return (diff --git a/apps/mobile/src/views/Editor/index.js b/apps/mobile/src/views/Editor/index.jsindex a62f60960..3f4a6ab97 100755--- a/apps/mobile/src/views/Editor/index.js+++ b/apps/mobile/src/views/Editor/index.js@@ -131,6 +131,7 @@ const Editor = ({noMenu}) => {const clearEditor = async () => {await saveNote(true);setDateEdited(0);+ InfoBarRef.current?.clear();title = null;content = null;note = null;@@ -138,6 +139,7 @@ const Editor = ({noMenu}) => {tapCount = 0;saveCounter = 0;canSave = false;+post({type: 'clearEditor',});