aboutsummaryrefslogtreecommitdiff
path: root/src/components/public_timeline/public_timeline.js
diff options
context:
space:
mode:
authorXiaofeng An <futureweb2020@yandex.com>2019-02-05 13:47:27 -0500
committerXiaofeng An <futureweb2020@yandex.com>2019-02-05 13:47:27 -0500
commitc758d103bdb0cb0ac2945722c0666d309cd19a75 (patch)
tree137734919bbd064f5c79b126127fe7151ddd5c55 /src/components/public_timeline/public_timeline.js
parent8e51c7847148c6e8e9488fd5e8ac17a9b0bc6290 (diff)
fix #308 - show login hint above timeline when user is not logged in
Diffstat (limited to 'src/components/public_timeline/public_timeline.js')
-rw-r--r--src/components/public_timeline/public_timeline.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/public_timeline/public_timeline.js b/src/components/public_timeline/public_timeline.js
index 9b866be8..e54e49fa 100644
--- a/src/components/public_timeline/public_timeline.js
+++ b/src/components/public_timeline/public_timeline.js
@@ -4,7 +4,8 @@ const PublicTimeline = {
Timeline
},
computed: {
- timeline () { return this.$store.state.statuses.timelines.public }
+ timeline () { return this.$store.state.statuses.timelines.public },
+ currentUser () { return this.$store.state.users.currentUser }
},
created () {
this.$store.dispatch('startFetching', 'public')