forked from potsda.mn/mobilizon
Various homeview fixes
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
be0b3245bf
commit
444e0d6a0c
|
@ -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";
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue