diff options
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 |
