mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
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:
commit
662e5f967c
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user