From 475820472fed56768bc2e77e5f4e93240d9251f4 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Tue, 11 Oct 2022 11:14:57 +0200 Subject: [PATCH] Add the banner picker on event edit page Signed-off-by: Thomas Citharel --- js/src/assets/oruga-tailwindcss.css | 2 +- js/src/components/Search/EventMarkerMap.vue | 7 ------- js/src/components/core/CustomDialog.vue | 2 +- js/src/views/Event/EditView.vue | 1 - js/src/views/Event/EventView.vue | 4 ++-- 5 files changed, 4 insertions(+), 12 deletions(-) diff --git a/js/src/assets/oruga-tailwindcss.css b/js/src/assets/oruga-tailwindcss.css index 6e4e3a232..e0e9830f2 100644 --- a/js/src/assets/oruga-tailwindcss.css +++ b/js/src/assets/oruga-tailwindcss.css @@ -42,7 +42,7 @@ body { @apply bg-mbz-success; } .btn-warning { - @apply bg-mbz-warning; + @apply bg-mbz-warning text-black hover:bg-mbz-warning/90 hover:text-slate-800; } .btn-text { @apply bg-transparent border-transparent text-black dark:text-white font-normal underline hover:bg-zinc-200 hover:text-black; diff --git a/js/src/components/Search/EventMarkerMap.vue b/js/src/components/Search/EventMarkerMap.vue index d67efc233..0f47e0e5a 100644 --- a/js/src/components/Search/EventMarkerMap.vue +++ b/js/src/components/Search/EventMarkerMap.vue @@ -162,13 +162,6 @@ onMounted(async () => { myBottomSheet.value.close(); } }); - // mapElement.value.on('load', function () { - // console.log('load event') - // setTimeout(() => { - // console.log('invalidate size') - // mapElement.value.invalidateSize() - // }, 1000) - // }) markers.value = new MarkerClusterGroup({ chunkedLoading: true }); mapElement.value.on("zoom", debounce(update, 1000)); diff --git a/js/src/components/core/CustomDialog.vue b/js/src/components/core/CustomDialog.vue index 7c5e87e9f..599d6df33 100644 --- a/js/src/components/core/CustomDialog.vue +++ b/js/src/components/core/CustomDialog.vue @@ -112,7 +112,7 @@ const iconByType = computed(() => { * Call the onConfirm prop (function) and close the Dialog. */ const confirm = () => { - console.log("dialog confirmed", input.value.$el); + console.debug("dialog confirmed", input.value?.$el); if (input.value !== undefined) { const inputElement = input.value.$el.querySelector("input"); if (!inputElement.checkValidity()) { diff --git a/js/src/views/Event/EditView.vue b/js/src/views/Event/EditView.vue index 2a5c58396..6602ed90b 100644 --- a/js/src/views/Event/EditView.vue +++ b/js/src/views/Event/EditView.vue @@ -10,7 +10,6 @@

{{ t("General information") }}

{ 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); } },