Basic attachments, some retweet fixes.
This commit is contained in:
parent
7b92ca6f94
commit
5f69014575
6 changed files with 76 additions and 13 deletions
21
src/components/attachment/attachment.js
Normal file
21
src/components/attachment/attachment.js
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue