From 242ae8e91b1586aee185873b2f2d10bb52495ef3 Mon Sep 17 00:00:00 2001 From: Jiayi Zheng Date: Sun, 13 Nov 2016 16:42:56 +0100 Subject: Add retweet button component Expand API service for retweet --- src/components/retweet_button/retweet_button.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/components/retweet_button/retweet_button.js (limited to 'src/components/retweet_button/retweet_button.js') diff --git a/src/components/retweet_button/retweet_button.js b/src/components/retweet_button/retweet_button.js new file mode 100644 index 00000000..42da2531 --- /dev/null +++ b/src/components/retweet_button/retweet_button.js @@ -0,0 +1,16 @@ +const RetweetButton = { + props: [ 'status' ], + methods: { + retweet () { + } + }, + computed: { + classes () { + return { + 'retweeted': this.status.repeated + } + } + } +} + +export default RetweetButton -- cgit v1.2.3-70-g09d2