diff options
| author | Roger Braun <roger@rogerbraun.net> | 2016-11-06 20:45:26 +0100 |
|---|---|---|
| committer | Roger Braun <roger@rogerbraun.net> | 2016-11-06 20:45:26 +0100 |
| commit | 7fcd36e2c19c29ce36086a85e59cc297d3474841 (patch) | |
| tree | b89c6903939f2920e3339c31057fab6ca32f1705 | |
| parent | b6ac99fdf07a58efe331c82905c513ca7ceb75e1 (diff) | |
Don't show actions when not logged in.
| -rw-r--r-- | src/components/status/status.js | 3 | ||||
| -rw-r--r-- | src/components/status/status.vue | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/components/status/status.js b/src/components/status/status.js index 2e6565e8..6253d334 100644 --- a/src/components/status/status.js +++ b/src/components/status/status.js @@ -16,6 +16,9 @@ const Status = { } else { return this.statusoid } + }, + loggedIn () { + return !!this.$store.state.users.currentUser } }, components: { diff --git a/src/components/status/status.vue b/src/components/status/status.vue index 8361aa52..1c5dc458 100644 --- a/src/components/status/status.vue +++ b/src/components/status/status.vue @@ -32,7 +32,7 @@ </attachment> </div> - <div> + <div v-if="loggedIn"> <div class='status-actions'> <div> <a href="#" v-on:click.prevent="toggleReplying"> |
