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: #106
thecodrr706cdde1db8e
diff --git a/apps/web/src/app.js b/apps/web/src/app.jsindex 67b941250..9cdc495f9 100644--- a/apps/web/src/app.js+++ b/apps/web/src/app.js@@ -159,10 +159,14 @@ function App() {type: "color",value: color.title});- RootNavigator.navigate("color", {- title: toTitleCase(color.title),- context: { colors: [color.title] }- });+ RootNavigator.navigate(+ "color",+ {+ title: toTitleCase(color.title),+ context: { colors: [color.title] }+ },+ true+ );}}key={color.title}item={{diff --git a/apps/web/src/navigation/index.js b/apps/web/src/navigation/index.jsindex 4a959d2c9..36733449c 100644--- a/apps/web/src/navigation/index.js+++ b/apps/web/src/navigation/index.js@@ -22,10 +22,10 @@ export default class Navigator {return document.querySelector(`.${this.root}`);}- navigate(routeName, params = {}) {+ navigate(routeName, params = {}, force = false) {let route = this.getRoute(routeName);- if (!route || this.lastRoute === route) {+ if (!force && (!route || this.lastRoute === route)) {return false;}diff --git a/apps/web/src/navigation/navigators/rootnavigator.js b/apps/web/src/navigation/navigators/rootnavigator.jsindex 071af55d5..68bd66be3 100644--- a/apps/web/src/navigation/navigators/rootnavigator.js+++ b/apps/web/src/navigation/navigators/rootnavigator.js@@ -54,7 +54,8 @@ export const routes = {};const invisibleRoutes = {- ...createNormalRoute("color", Notes, Icon.Circle, {+ ...createRoute("color", Notes, {+ icon: Icon.Circle,options: SelectionModeOptions.NotesOptions})};