File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
frontend/src/components/shared Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 2525 <router-link to =" /accounts/signin" class =" navigation-button-logged-in sm:hover:bg-white-matcha sm:hover:text-purple-matcha sm:text-purple-matcha sm:bg-white-matcha sm:py-2 sm:px-8 sm:rounded-md" >Sign In</router-link >
2626 <router-link to =" /accounts/signup" class =" navigation-button-logged-in sm:hover:bg-purple-matcha sm:hover:text-white-matcha sm:text-white-matcha sm:py-2 sm:px-8" >Get Started</router-link >
2727 </div >
28- <router-link v-if =" loggedIn" to =" /browse" class =" navigation-button-logged-in" >Browse</router-link >
28+ <router-link v-if =" loggedIn && currentRoute !== 'Browse' " to =" /browse" class =" navigation-button-logged-in" >Browse</router-link >
2929 <router-link v-if =" loggedIn" to =" /search" class =" navigation-button-logged-in" >Search</router-link >
3030 <router-link v-if =" loggedIn" to =" /" class =" navigation-button-logged-in" >Matches</router-link >
3131 <router-link v-if =" loggedIn" to =" /" class =" navigation-button-logged-in" >Profile</router-link >
@@ -40,6 +40,7 @@ import { logOut } from '@/auth/logOut';
4040
4141export default {
4242 name: ' Navigation' ,
43+ props: [' currentRoute' ],
4344 data () {
4445 return {
4546 isOpen: false ,
You can’t perform that action at this time.
0 commit comments