306 fix visgraph issues

This commit is contained in:
2021-12-06 14:01:50 +00:00
committed by Julien Fastré
parent 8e8a8c1e70
commit bbc5e94033
8 changed files with 114 additions and 76 deletions

View File

@@ -192,6 +192,7 @@ export default {
return `/fr/person/${this.person.id}/general`;
},
getAge: function() {
// TODO only one abstract function
if(this.person.birthdate && !this.person.deathdate){
const birthday = new Date(this.person.birthdate.datetime)
const now = new Date()