Fix syntax errors and hiding logic.

This has been tested.
This commit is contained in:
Hector A. Escobedo 2017-02-22 18:59:48 -05:00
parent a7db72d7a7
commit c338940084
4 changed files with 15 additions and 13 deletions

View file

@ -7,17 +7,19 @@ const Attachment = {
'nsfw',
'statusId'
],
data: () => ({
nsfwImage,
hideNsfwLocal: this.$store.state.config.hideNsfw,
showHidden: !this.hideNsfwLocal
}),
data () {
return {
nsfwImage,
hideNsfwLocal: this.$store.state.config.hideNsfw,
showHidden: false
}
},
computed: {
type () {
return fileTypeService.fileType(this.attachment.mimetype)
},
hidden () {
return this.nsfw && !this.showHidden
return this.nsfw && this.hideNsfwLocal && !this.showHidden
}
},
methods: {