From: Adam Dullage Date: Mon, 26 Sep 2022 19:43:16 +0000 (+0100) Subject: Allow CTRL-Click on more links X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=5cc1254b1f7b2f0fcf4874b7d1bc90e30503931d;p=flatnotes.git Allow CTRL-Click on more links --- diff --git a/flatnotes/src/components/App.js b/flatnotes/src/components/App.js index a3f3d17..0553ed9 100644 --- a/flatnotes/src/components/App.js +++ b/flatnotes/src/components/App.js @@ -105,18 +105,6 @@ export default { this.navigate(constants.basePaths.login); }, - newNote: function() { - this.navigate(constants.basePaths.new); - }, - - az: function() { - let params = new URLSearchParams(); - params.set(constants.params.searchTerm, "*"); - params.set(constants.params.sortBy, constants.searchSortOptions.title); - params.set(constants.params.showHighlights, false); - this.navigate(`${constants.basePaths.search}?${params.toString()}`); - }, - noteDeletedToast: function() { this.$bvToast.toast("Note deleted ✓", { variant: "success", diff --git a/flatnotes/src/components/App.vue b/flatnotes/src/components/App.vue index d6dec1d..25654a0 100644 --- a/flatnotes/src/components/App.vue +++ b/flatnotes/src/components/App.vue @@ -12,9 +12,6 @@ v-if="currentView != views.login" class="w-100 mb-5" :show-logo="currentView != views.home" - @navigate-home="navigate(constants.basePaths.home)" - @new-note="newNote()" - @a-z="az()" @logout="logout()" @search="openSearch()" > diff --git a/flatnotes/src/components/NavBar.vue b/flatnotes/src/components/NavBar.vue index 4092d8f..1d3186f 100644 --- a/flatnotes/src/components/NavBar.vue +++ b/flatnotes/src/components/NavBar.vue @@ -1,19 +1,26 @@