diff options
| author | Roger Braun <roger@rogerbraun.net> | 2016-10-28 18:08:03 +0200 |
|---|---|---|
| committer | Roger Braun <roger@rogerbraun.net> | 2016-10-28 18:08:03 +0200 |
| commit | 5f690145755c3972268e2750808ac98dcc17af90 (patch) | |
| tree | 3d733fd50366a96fb06fe4d9119f81119b807543 /src/components/attachment/attachment.js | |
| parent | 7b92ca6f9406fc93868273c7fd755f92443cb0be (diff) | |
Basic attachments, some retweet fixes.
Diffstat (limited to 'src/components/attachment/attachment.js')
| -rw-r--r-- | src/components/attachment/attachment.js | 21 |
1 files changed, 21 insertions, 0 deletions
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 |
