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>
|
<template>
|
||||||
|
|
||||||
<li v-if="address" class="chill-entity entity-address">
|
<li v-if="address" class="chill-entity entity-address">
|
||||||
|
@ -65,7 +65,7 @@
|
|||||||
<ul class="list-content fa-ul">
|
<ul class="list-content fa-ul">
|
||||||
<!-- ADDRESS -->
|
<!-- ADDRESS -->
|
||||||
<li v-if="person.current_household_address" class="chill-entity entity-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>
|
<show-address :address="person.current_household_address" :multiline="false"></show-address>
|
||||||
</li>
|
</li>
|
||||||
<!-- PHONENUMBER -->
|
<!-- PHONENUMBER -->
|
||||||
@ -97,13 +97,11 @@
|
|||||||
<script>
|
<script>
|
||||||
// import OnTheFly from 'ChillMainAssets/vuejs/_components/OnTheFly.vue';
|
// import OnTheFly from 'ChillMainAssets/vuejs/_components/OnTheFly.vue';
|
||||||
import {dateToISO} from 'ChillMainAssets/chill/js/date.js';
|
import {dateToISO} from 'ChillMainAssets/chill/js/date.js';
|
||||||
import AddressRenderBox from './AddressRenderBox.vue';
|
|
||||||
import ShowAddress from 'ChillMainAssets/vuejs/Address/components/ShowAddress.vue';
|
import ShowAddress from 'ChillMainAssets/vuejs/Address/components/ShowAddress.vue';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "PersonRenderBox",
|
name: "PersonRenderBox",
|
||||||
components: {
|
components: {
|
||||||
AddressRenderBox,
|
|
||||||
ShowAddress
|
ShowAddress
|
||||||
},
|
},
|
||||||
props: ['person', 'options'],
|
props: ['person', 'options'],
|
||||||
@ -118,6 +116,10 @@ export default {
|
|||||||
var date = new Date(this.person.birthdate.datetime);
|
var date = new Date(this.person.birthdate.datetime);
|
||||||
return dateToISO(date);
|
return dateToISO(date);
|
||||||
},
|
},
|
||||||
|
deathdate: function(){
|
||||||
|
var date = new Date(this.person.deathdate.datetime);
|
||||||
|
return dateToISO(date);
|
||||||
|
},
|
||||||
altNameLabel: function(){
|
altNameLabel: function(){
|
||||||
for(let i = 0; i < this.person.altNames.length; i++){
|
for(let i = 0; i < this.person.altNames.length; i++){
|
||||||
return this.person.altNames[i].label
|
return this.person.altNames[i].label
|
||||||
|
Loading…
x
Reference in New Issue
Block a user