From d2436fb9e5f8f512914033a2df33c57545d277a6 Mon Sep 17 00:00:00 2001 From: Xiaofeng An Date: Tue, 5 Feb 2019 15:43:56 -0500 Subject: move hint inside Timeline component --- src/components/timeline/timeline.js | 3 +- src/components/timeline/timeline.vue | 73 ++++++++++++++++++++++++------------ 2 files changed, 50 insertions(+), 26 deletions(-) (limited to 'src/components/timeline') diff --git a/src/components/timeline/timeline.js b/src/components/timeline/timeline.js index 85e0a055..2bbb05f3 100644 --- a/src/components/timeline/timeline.js +++ b/src/components/timeline/timeline.js @@ -39,7 +39,8 @@ const Timeline = { body: ['timeline-body'].concat(!this.embedded ? ['panel-body'] : []), footer: ['timeline-footer'].concat(!this.embedded ? ['panel-footer'] : []) } - } + }, + currentUser () { return this.$store.state.users.currentUser } }, components: { Status, diff --git a/src/components/timeline/timeline.vue b/src/components/timeline/timeline.vue index e3eea3bd..74909f6d 100644 --- a/src/components/timeline/timeline.vue +++ b/src/components/timeline/timeline.vue @@ -1,33 +1,42 @@