pleroma-fe/src/components/attachment/attachment.js
2016-10-28 18:08:03 +02:00

22 lines
298 B
JavaScript

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