From 0507eb6550830f7b76910d51200675de0aa9b1de Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Sun, 15 Aug 2021 21:04:49 +0300 Subject: ability to move attachments around when making a new post --- src/components/attachment/attachment.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/components/attachment/attachment.js') 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() }, -- cgit v1.2.3-70-g09d2