Add the banner picker on event edit page
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user