do not add image name as label
This commit is contained in:
@@ -87,7 +87,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
save () {
|
save () {
|
||||||
this.$emit('input', { url: this.value.url, image: this.value.image, name: this.name || (this.value.image && this.value.image.name) || '', focalpoint: [...this.focalpoint] })
|
this.$emit('input', { url: this.value.url, image: this.value.image, name: this.name || (this.event.title) || '', focalpoint: [...this.focalpoint] })
|
||||||
this.openMediaDetails = false
|
this.openMediaDetails = false
|
||||||
},
|
},
|
||||||
async remove () {
|
async remove () {
|
||||||
@@ -96,7 +96,7 @@ export default {
|
|||||||
this.$emit('remove')
|
this.$emit('remove')
|
||||||
},
|
},
|
||||||
selectMedia (v) {
|
selectMedia (v) {
|
||||||
this.$emit('input', { image: v, name: v.name, focalpoint: [0, 0] })
|
this.$emit('input', { image: v, name: this.event.title, focalpoint: [0, 0] })
|
||||||
},
|
},
|
||||||
handleStart (ev) {
|
handleStart (ev) {
|
||||||
ev.preventDefault()
|
ev.preventDefault()
|
||||||
|
|||||||
Reference in New Issue
Block a user