ability to move attachments around when making a new post
This commit is contained in:
parent
830a03a0d1
commit
0507eb6550
7 changed files with 59 additions and 7 deletions
|
@ -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()
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue