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