From 99794c16197afce93fe09c970f77316e6b345408 Mon Sep 17 00:00:00 2001 From: lesion Date: Fri, 4 Feb 2022 11:27:46 +0100 Subject: [PATCH] do not add image name as label --- pages/add/MediaInput.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/add/MediaInput.vue b/pages/add/MediaInput.vue index 57220b96..031bffee 100644 --- a/pages/add/MediaInput.vue +++ b/pages/add/MediaInput.vue @@ -87,7 +87,7 @@ export default { }, methods: { 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 }, async remove () { @@ -96,7 +96,7 @@ export default { this.$emit('remove') }, 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) { ev.preventDefault()