From c6f17d7187cf682e2e9809ed18a548fc1ee78d74 Mon Sep 17 00:00:00 2001 From: Justin Georgi Date: Thu, 14 Mar 2024 16:03:03 -0700 Subject: [PATCH] Add custom navigation guard to settings page (#137) Closes: #131 There is probably a better ("more native") way to do this, but I spent hours trying to figure it out and in the end it was way easier to circumvent the built-in f7 router events and just use my own custom back button. D.U.M. - dumb, but not my fault (I think...). Signed-off-by: Justin Georgi Reviewed-on: https://gitea.azgeorgis.net/ALVINN/ALVINN_f7/pulls/137 --- src/js/routes.js | 2 +- src/pages/settings.vue | 29 +++++++++++++++++++++++++---- 2 files changed, 26 insertions(+), 5 deletions(-) diff --git a/src/js/routes.js b/src/js/routes.js index e072acd..ba6fcf7 100644 --- a/src/js/routes.js +++ b/src/js/routes.js @@ -27,7 +27,7 @@ var routes = [ }, { path: '/settings/', - component: SettingsPage, + component: SettingsPage }, { path: '/contact/', diff --git a/src/pages/settings.vue b/src/pages/settings.vue index dfb2f9f..5cec503 100644 --- a/src/pages/settings.vue +++ b/src/pages/settings.vue @@ -1,7 +1,12 @@