From: Adam Dullage Date: Wed, 21 Sep 2022 11:44:11 +0000 (+0100) Subject: Replaced AZ link X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=492c635d60f0cecb2129a54fc12861bc45581b36;p=flatnotes.git Replaced AZ link --- diff --git a/flatnotes/src/components/App.js b/flatnotes/src/components/App.js index 38e0831..d955028 100644 --- a/flatnotes/src/components/App.js +++ b/flatnotes/src/components/App.js @@ -116,6 +116,14 @@ export default { 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 112ca1f..d532190 100644 --- a/flatnotes/src/components/App.vue +++ b/flatnotes/src/components/App.vue @@ -14,7 +14,7 @@ :show-logo="currentView != views.home" @navigate-home="navigate(constants.basePaths.home)" @new-note="newNote()" - @a-z="navigate(constants.basePaths.notes)" + @a-z="az()" @logout="logout()" @search="openSearch()" >