image description improvements
This commit is contained in:
parent
be96fd70b2
commit
b51d0baa66
7 changed files with 88 additions and 42 deletions
|
|
@ -4,6 +4,7 @@ import nsfwImage from '../../assets/nsfw.png'
|
|||
import Flash from '../flash/flash.vue'
|
||||
import StillImage from '../still-image/still-image.vue'
|
||||
import VideoAttachment from '../video_attachment/video_attachment.vue'
|
||||
import Popover from '../popover/popover.vue'
|
||||
|
||||
import { useInstanceStore } from 'src/stores/instance.js'
|
||||
import { useInstanceCapabilitiesStore } from 'src/stores/instance_capabilities.js'
|
||||
|
|
@ -65,13 +66,13 @@ const Attachment = {
|
|||
modalOpen: false,
|
||||
showHidden: false,
|
||||
flashLoaded: false,
|
||||
showDescription: false,
|
||||
}
|
||||
},
|
||||
components: {
|
||||
Flash,
|
||||
StillImage,
|
||||
VideoAttachment,
|
||||
Popover,
|
||||
},
|
||||
computed: {
|
||||
classNames() {
|
||||
|
|
@ -180,9 +181,6 @@ const Attachment = {
|
|||
setFlashLoaded(event) {
|
||||
this.flashLoaded = event
|
||||
},
|
||||
toggleDescription() {
|
||||
this.showDescription = !this.showDescription
|
||||
},
|
||||
toggleHidden(event) {
|
||||
if (
|
||||
this.mergedConfig.useOneClickNsfw &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue