akkoma-fe/src/components/attachment/attachment.js

22 lines
298 B
JavaScript
Raw Normal View History

2016-10-28 16:08:03 +00:00
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