From: Adam Dullage Date: Mon, 6 May 2024 17:05:10 +0000 (+0100) Subject: Change path for new note to /new X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=fe8ac745446936697dc662d392654e8b4c6f8ece;p=flatnotes.git Change path for new note to /new --- diff --git a/client/partials/NavBar.vue b/client/partials/NavBar.vue index a1fe04d..c9c186a 100644 --- a/client/partials/NavBar.vue +++ b/client/partials/NavBar.vue @@ -5,7 +5,7 @@
- + diff --git a/client/router.js b/client/router.js index 073e65d..51211a6 100644 --- a/client/router.js +++ b/client/router.js @@ -17,11 +17,16 @@ const router = createRouter({ props: (route) => ({ redirect: route.query[constants.params.redirect] }), }, { - path: "/note/:title?", + path: "/note/:title", name: "note", component: () => import("./views/Note.vue"), props: true, }, + { + path: "/new", + name: "new", + component: () => import("./views/Note.vue"), + }, { path: "/search", name: "search",