Don't show actions when not logged in.

This commit is contained in:
Roger Braun 2016-11-06 20:45:26 +01:00
parent b6ac99fdf0
commit 7fcd36e2c1
2 changed files with 4 additions and 1 deletions

View File

@ -16,6 +16,9 @@ const Status = {
} else { } else {
return this.statusoid return this.statusoid
} }
},
loggedIn () {
return !!this.$store.state.users.currentUser
} }
}, },
components: { components: {

View File

@ -32,7 +32,7 @@
</attachment> </attachment>
</div> </div>
<div> <div v-if="loggedIn">
<div class='status-actions'> <div class='status-actions'>
<div> <div>
<a href="#" v-on:click.prevent="toggleReplying"> <a href="#" v-on:click.prevent="toggleReplying">