We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5db73c4 + 8009a78 commit 98b026eCopy full SHA for 98b026e
1 file changed
frontend/src/components/shared/NavBar.vue
@@ -4,7 +4,7 @@
4
<nav v-if="showNavigationBar" class="md:flex md:justify-between md:items-center md:py-5">
5
<div class="flex items-center justify-between px-5 py-3 md:p-0 w-full">
6
<div id="logo">
7
- <router-link to="/">
+ <router-link v-bind:to="getMatchaButtonRoute">
8
<div class="flex justify-center items-center">
9
<img src="../../assets/logo.png" class="h-6">
10
<h1 v-if="!loggedIn" class="text-purple-matcha text-xl ml-2">Matcha</h1>
@@ -88,6 +88,12 @@ export default {
88
showNavigationBar() {
89
return this.dontShowOn.indexOf(this.route) === -1;
90
},
91
+ getMatchaButtonRoute() {
92
+ if (!this.loggedIn) {
93
+ return '/';
94
+ }
95
+ return '/browse';
96
+ },
97
98
beforeMount() {
99
this.route = this.$router.currentRoute.name;
0 commit comments