aboutsummaryrefslogtreecommitdiff
path: root/src/components/attachment/attachment.js
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2021-08-15 21:04:28 +0300
committerHenry Jameson <me@hjkos.com>2021-08-15 21:04:28 +0300
commit830a03a0d13738ed1677d364fdf03821fbc507ab (patch)
tree71fb6212eb625392420dd53d52459a45bd672422 /src/components/attachment/attachment.js
parent34d265467a77d4e680e3c56c254df7dfb904fc18 (diff)
inline description display
Diffstat (limited to 'src/components/attachment/attachment.js')
-rw-r--r--src/components/attachment/attachment.js12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/components/attachment/attachment.js b/src/components/attachment/attachment.js
index b2ba1655..fea7c6f8 100644
--- a/src/components/attachment/attachment.js
+++ b/src/components/attachment/attachment.js
@@ -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) &&