Hide timeline if user isn't logged in.
This commit is contained in:
parent
a994e794cc
commit
8cd1c690ca
2 changed files with 6 additions and 1 deletions
|
@ -1,4 +1,9 @@
|
||||||
const NavPanel = {
|
const NavPanel = {
|
||||||
|
computed: {
|
||||||
|
loggedIn () {
|
||||||
|
return this.$store.state.users.currentUser
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export default NavPanel
|
export default NavPanel
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<div class="nav-panel">
|
<div class="nav-panel">
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<ul>
|
<ul>
|
||||||
<li ng-if='currentUser'>
|
<li v-if='loggedIn'>
|
||||||
<router-link to='/main/friends'>
|
<router-link to='/main/friends'>
|
||||||
Timeline
|
Timeline
|
||||||
</router-link>
|
</router-link>
|
||||||
|
|
Loading…
Reference in a new issue