From 5f690145755c3972268e2750808ac98dcc17af90 Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Fri, 28 Oct 2016 18:08:03 +0200 Subject: Basic attachments, some retweet fixes. --- src/components/attachment/attachment.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/components/attachment/attachment.js (limited to 'src/components/attachment/attachment.js') diff --git a/src/components/attachment/attachment.js b/src/components/attachment/attachment.js new file mode 100644 index 00000000..c21cd656 --- /dev/null +++ b/src/components/attachment/attachment.js @@ -0,0 +1,21 @@ +import nsfwImage from '../../assets/nsfw.jpg' + +const Attachment = { + props: [ + 'attachment', + 'nsfw' + ], + data: () => ({ nsfwImage }), + computed: { + type () { + return 'image' + } + }, + methods: { + showNsfw () { + this.nsfw = false + } + } +} + +export default Attachment -- cgit v1.2.3-70-g09d2