Replaced AZ link
authorAdam Dullage <redacted>
Wed, 21 Sep 2022 11:44:11 +0000 (12:44 +0100)
committerAdam Dullage <redacted>
Wed, 21 Sep 2022 11:44:11 +0000 (12:44 +0100)
flatnotes/src/components/App.js
flatnotes/src/components/App.vue

index 38e0831752271e7759cfe38dbc64042a7b00d5a8..d9550288916e603c8625a72ad0942dba0299f9db 100644 (file)
@@ -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",
index 112ca1fec74157653297f2a8a89aa8bda364dec0..d532190821a219908aaeed1807da808851a8a2b1 100644 (file)
@@ -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()"
     ></NavBar>
git clone https://git.99rst.org/PROJECT