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

View File

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

View File

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