1
0
Fork 0
mirror of https://framagit.org/framasoft/mobilizon.git synced 2024-12-22 07:52:43 +00:00

Small fixes to Home.vue

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2022-06-17 11:44:51 +02:00
parent 68973b91d9
commit 8f4099ee33
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773

View file

@ -58,7 +58,7 @@
<b slot="instance">{{ config.name }}</b>
</i18n>
</p>
<div v-if="this.events.total > 0">
<div v-if="events.total > 0">
<multi-card :events="events.elements.slice(0, 6)" />
<span class="view-all">
<router-link :to="{ name: RouteName.SEARCH }"
@ -258,7 +258,10 @@
/>
<!-- Events close to you -->
<section class="events-close" v-if="canShowCloseEvents">
<section
class="events-close"
v-if="canShowCloseEvents && loggedUserSettings.location?.range"
>
<h2 class="title">
{{ $t("Events nearby") }}
</h2>
@ -266,10 +269,10 @@
{{
$tc(
"Within {number} kilometers of {place}",
loggedUserSettings.location.range,
loggedUserSettings.location?.range,
{
number: loggedUserSettings.location.range,
place: loggedUserSettings.location.name,
number: loggedUserSettings.location?.range,
place: loggedUserSettings.location?.name,
}
)
}}