mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
widget addPersons: fix persons without birthdate
This commit is contained in:
parent
e4adafafc8
commit
028c3e0c31
@ -4,7 +4,7 @@
|
|||||||
<span class="name">
|
<span class="name">
|
||||||
{{ item.result.text }}
|
{{ item.result.text }}
|
||||||
</span>
|
</span>
|
||||||
<span class="birthday">
|
<span class="birthday" v-if="hasBirthdate">
|
||||||
{{ $d(item.result.birthdate.datetime, 'short') }}
|
{{ $d(item.result.birthdate.datetime, 'short') }}
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
@ -31,6 +31,11 @@ export default {
|
|||||||
components: {
|
components: {
|
||||||
OnTheFly
|
OnTheFly
|
||||||
},
|
},
|
||||||
props: ['item']
|
props: ['item'],
|
||||||
|
computed: {
|
||||||
|
hasBirthdate() {
|
||||||
|
return this.item.result.birthdate !== null;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user