Skip to content

Commit 750bf84

Browse files
committed
add names to routes
1 parent eba6077 commit 750bf84

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

frontend/src/components/shared/NavBar.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ import NavBarBell from '@/components/shared/NavBarBell.vue';
4343
4444
export default {
4545
name: 'Navigation',
46-
props: ['currentRoute'],
4746
components: {
4847
NavBarBell,
4948
},
@@ -56,6 +55,10 @@ export default {
5655
loggedIn() {
5756
return this.$store.getters.getLoggedInUser;
5857
},
58+
currentRoute() {
59+
console.log(this.$router.currentRoute);
60+
return this.$route.name;
61+
},
5962
},
6063
};
6164
</script>

0 commit comments

Comments
 (0)