inline description display

This commit is contained in:
Henry Jameson 2021-08-15 21:04:28 +03:00
parent 34d265467a
commit 830a03a0d1
3 changed files with 19 additions and 14 deletions

View file

@ -15,7 +15,8 @@ import {
faStop,
faSearchPlus,
faTrashAlt,
faPencilAlt
faPencilAlt,
faAlignRight
} from '@fortawesome/free-solid-svg-icons'
library.add(
@ -28,7 +29,8 @@ library.add(
faStop,
faSearchPlus,
faTrashAlt,
faPencilAlt
faPencilAlt,
faAlignRight
)
const Attachment = {
@ -52,7 +54,8 @@ const Attachment = {
img: fileTypeService.fileType(this.attachment.mimetype) === 'image' && document.createElement('img'),
modalOpen: false,
showHidden: false,
flashLoaded: false
flashLoaded: false,
showDescription: false
}
},
components: {
@ -157,6 +160,9 @@ const Attachment = {
setFlashLoaded (event) {
this.flashLoaded = event
},
toggleDescription () {
this.showDescription = !this.showDescription
},
toggleHidden (event) {
if (
(this.mergedConfig.useOneClickNsfw && !this.showHidden) &&