Add the banner picker on event edit page

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2022-10-11 11:14:57 +02:00
parent 800e136aae
commit 475820472f
5 changed files with 4 additions and 12 deletions

View File

@@ -10,7 +10,6 @@
<form ref="form">
<h2>{{ t("General information") }}</h2>
<picture-upload
v-if="pictureFile"
v-model:modelValue="pictureFile"
:textFallback="t('Headline picture')"
:defaultImage="event.picture"

View File

@@ -837,7 +837,7 @@ const openDeleteEventModal = () => {
pattern: escapeRegExp(event.value?.title ?? ""),
},
onConfirm: (result: string) => {
console.log("calling delete event", result);
console.debug("calling delete event", result);
if (result.trim() === event.value?.title) {
event.value?.id ? deleteEvent({ eventId: event.value?.id }) : null;
}
@@ -1008,7 +1008,7 @@ const confirmLeave = (): void => {
hasIcon: true,
onConfirm: () => {
if (event.value && currentActor.value?.id) {
console.log("calling leave event");
console.debug("calling leave event");
leaveEvent(event.value, currentActor.value.id);
}
},