aboutsummaryrefslogtreecommitdiff
path: root/src/components/attachment/attachment.js
blob: c21cd65662923fa5d354abbb7bc1294c354cbd5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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