Various homeview fixes

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2022-08-19 15:07:58 +02:00
parent be0b3245bf
commit 444e0d6a0c
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773
4 changed files with 10 additions and 3 deletions

View File

@ -112,7 +112,7 @@
</div> </div>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import type { LatLng } from "leaflet"; import { LatLng } from "leaflet";
import { Address, IAddress, addressFullName } from "../../types/address.model"; import { Address, IAddress, addressFullName } from "../../types/address.model";
import AddressInfo from "../../components/Address/AddressInfo.vue"; import AddressInfo from "../../components/Address/AddressInfo.vue";
import { computed, ref, watch, defineAsyncComponent } from "vue"; import { computed, ref, watch, defineAsyncComponent } from "vue";

View File

@ -19,6 +19,8 @@
:type="AddressSearchType.ADMINISTRATIVE" :type="AddressSearchType.ADMINISTRATIVE"
:doGeoLocation="false" :doGeoLocation="false"
v-model="location" v-model="location"
:hide-map="true"
:hide-selected="true"
/> />
<o-button type="submit" icon-left="magnify"> <o-button type="submit" icon-left="magnify">
<template v-if="search">{{ t("Go!") }}</template> <template v-if="search">{{ t("Go!") }}</template>

View File

@ -3,7 +3,7 @@
<div class="mb-2"> <div class="mb-2">
<div class="w-full flex flex-wrap gap-3 items-center"> <div class="w-full flex flex-wrap gap-3 items-center">
<h2 <h2
class="text-xl font-bold tracking-tight text-gray-900 dark:text-gray-100" class="text-xl font-bold tracking-tight text-gray-900 dark:text-gray-100 mt-0"
> >
<slot name="title" /> <slot name="title" />
</h2> </h2>

View File

@ -5,7 +5,12 @@
v-on="attrs" v-on="attrs"
> >
<template #title> <template #title>
{{ t("Events nearby {position}", { position: userLocationName }) }} <template v-if="userLocationName">
{{ t("Events nearby {position}", { position: userLocationName }) }}
</template>
<template v-else>
{{ t("Events close to you") }}
</template>
</template> </template>
<template #content> <template #content>
<skeleton-event-result <skeleton-event-result