aboutsummaryrefslogtreecommitdiff
path: root/src/components/attachment/attachment.js
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2021-08-15 21:04:49 +0300
committerHenry Jameson <me@hjkos.com>2021-08-15 21:04:49 +0300
commit0507eb6550830f7b76910d51200675de0aa9b1de (patch)
tree856b2507598d884229f5d2461a0e190f830788d4 /src/components/attachment/attachment.js
parent830a03a0d13738ed1677d364fdf03821fbc507ab (diff)
ability to move attachments around when making a new post
Diffstat (limited to 'src/components/attachment/attachment.js')
-rw-r--r--src/components/attachment/attachment.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/components/attachment/attachment.js b/src/components/attachment/attachment.js
index fea7c6f8..f9c8d981 100644
--- a/src/components/attachment/attachment.js
+++ b/src/components/attachment/attachment.js
@@ -42,6 +42,8 @@ const Attachment = {
'size',
'setMedia',
'remove',
+ 'shiftUp',
+ 'shiftDn',
'edit'
],
data () {
@@ -154,6 +156,12 @@ const Attachment = {
onRemove () {
this.remove && this.remove(this.attachment)
},
+ onShiftUp () {
+ this.shiftUp && this.shiftUp(this.attachment)
+ },
+ onShiftDn () {
+ this.shiftDn && this.shiftDn(this.attachment)
+ },
stopFlash () {
this.$refs.flash.closePlayer()
},