Merge branch 'frontend/address-to-add-persons-widget' into 'master'

Add address to widget add persons

See merge request Chill-Projet/chill-bundles!105
This commit is contained in:
Mathieu Jaumotte 2021-06-30 07:12:42 +00:00
commit 662e5f967c

View File

@ -6,6 +6,10 @@
</span>
<span class="birthday" v-if="hasBirthdate">
{{ $d(item.result.birthdate.datetime, 'short') }}
</span>
<span class="location" v-if="hasAddress">
{{ item.result.current_household_address.text }} -
{{ item.result.current_household_address.postcode.name }}
</span>
</div>
@ -29,12 +33,15 @@ import OnTheFly from 'ChillMainAssets/vuejs/_components/OnTheFly.vue';
export default {
name: 'SuggestionPerson',
components: {
OnTheFly
OnTheFly,
},
props: ['item'],
computed: {
hasBirthdate() {
return this.item.result.birthdate !== null;
},
hasAddress() {
return this.item.result.current_household_address !== null;
}
}
}