fix(map): Only show map details when needed

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2023-04-19 18:33:34 +02:00
parent eda2761032
commit 23b5e5930c
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773
3 changed files with 5 additions and 0 deletions

View File

@ -90,6 +90,7 @@
v-model:open="detailsAddress" v-model:open="detailsAddress"
:aria-id="`${id}-address-details`" :aria-id="`${id}-address-details`"
class="my-3" class="my-3"
v-if="allowManualDetails"
> >
<template #trigger> <template #trigger>
<o-button <o-button
@ -210,6 +211,7 @@ const props = withDefaults(
placeholder?: string; placeholder?: string;
resultType?: AddressSearchType; resultType?: AddressSearchType;
defaultCoords?: string; defaultCoords?: string;
allowManualDetails?: boolean;
}>(), }>(),
{ {
defaultCoords: "0;0", defaultCoords: "0;0",
@ -217,6 +219,7 @@ const props = withDefaults(
disabled: false, disabled: false,
hideMap: false, hideMap: false,
hideSelected: false, hideSelected: false,
allowManualDetails: false,
} }
); );

View File

@ -115,6 +115,7 @@
v-model="eventPhysicalAddress" v-model="eventPhysicalAddress"
:user-timezone="userActualTimezone" :user-timezone="userActualTimezone"
:disabled="event.options.isOnline" :disabled="event.options.isOnline"
:allowManualDetails="true"
:hideSelected="true" :hideSelected="true"
/> />
<o-switch class="my-4" v-model="isOnline">{{ <o-switch class="my-4" v-model="isOnline">{{

View File

@ -158,6 +158,7 @@
<full-address-auto-complete <full-address-auto-complete
:label="t('Group address')" :label="t('Group address')"
v-model="currentAddress" v-model="currentAddress"
:allowManualDetails="true"
:hideMap="true" :hideMap="true"
/> />