mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-21 15:32:32 +00:00
Fix some typescript issues
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
8f4099ee33
commit
5d29927b83
1 changed files with 9 additions and 5 deletions
|
@ -260,7 +260,11 @@
|
|||
<!-- Events close to you -->
|
||||
<section
|
||||
class="events-close"
|
||||
v-if="canShowCloseEvents && loggedUserSettings.location?.range"
|
||||
v-if="
|
||||
canShowCloseEvents &&
|
||||
loggedUserSettings.location &&
|
||||
loggedUserSettings.location.range
|
||||
"
|
||||
>
|
||||
<h2 class="title">
|
||||
{{ $t("Events nearby") }}
|
||||
|
@ -269,10 +273,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,
|
||||
}
|
||||
)
|
||||
}}
|
||||
|
@ -490,7 +494,7 @@ export default class Home extends Vue {
|
|||
}
|
||||
|
||||
// eslint-disable-next-line class-methods-use-this
|
||||
isToday(date: Date): boolean {
|
||||
isToday(date: Date | string): boolean {
|
||||
return new Date(date).toDateString() === new Date().toDateString();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue