mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
deathdate fix in personrenderbox, in case there is a deathdate
This commit is contained in:
parent
90cfcd0569
commit
de7322464b
@ -1,3 +1,5 @@
|
||||
// CURRENTLY NOT IN USE
|
||||
|
||||
<template>
|
||||
|
||||
<li v-if="address" class="chill-entity entity-address">
|
||||
|
@ -65,7 +65,7 @@
|
||||
<ul class="list-content fa-ul">
|
||||
<!-- ADDRESS -->
|
||||
<li v-if="person.current_household_address" class="chill-entity entity-address">
|
||||
<i class="fa fa-fw fa-map-marker"></i>
|
||||
<i class="fa fa-li fa-map-marker"></i>
|
||||
<show-address :address="person.current_household_address" :multiline="false"></show-address>
|
||||
</li>
|
||||
<!-- PHONENUMBER -->
|
||||
@ -97,13 +97,11 @@
|
||||
<script>
|
||||
// import OnTheFly from 'ChillMainAssets/vuejs/_components/OnTheFly.vue';
|
||||
import {dateToISO} from 'ChillMainAssets/chill/js/date.js';
|
||||
import AddressRenderBox from './AddressRenderBox.vue';
|
||||
import ShowAddress from 'ChillMainAssets/vuejs/Address/components/ShowAddress.vue';
|
||||
|
||||
export default {
|
||||
name: "PersonRenderBox",
|
||||
components: {
|
||||
AddressRenderBox,
|
||||
ShowAddress
|
||||
},
|
||||
props: ['person', 'options'],
|
||||
@ -118,6 +116,10 @@ export default {
|
||||
var date = new Date(this.person.birthdate.datetime);
|
||||
return dateToISO(date);
|
||||
},
|
||||
deathdate: function(){
|
||||
var date = new Date(this.person.deathdate.datetime);
|
||||
return dateToISO(date);
|
||||
},
|
||||
altNameLabel: function(){
|
||||
for(let i = 0; i < this.person.altNames.length; i++){
|
||||
return this.person.altNames[i].label
|
||||
|
Loading…
x
Reference in New Issue
Block a user