diff --git a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/_components/Entity/PersonRenderBox.vue b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/_components/Entity/PersonRenderBox.vue index 6fc3933a8..d504cb60f 100644 --- a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/_components/Entity/PersonRenderBox.vue +++ b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/_components/Entity/PersonRenderBox.vue @@ -19,7 +19,7 @@ - hello + {{ altNameLabel }} @@ -30,7 +30,7 @@ - {{ alt.label }} + {{ altNameLabel }} @@ -50,7 +50,6 @@ {{ participation.person.age }}

- @@ -146,6 +145,16 @@ export default { var year = date.getFullYear() return `${day} ${months[month]} ${year}`; }, + altNameLabel: function(){ + for(let i = 0; i < this.participation.person.altNames.length; i++){ + return this.participation.person.altNames[i].label + } + }, + altNameKey: function(){ + for(let i = 0; i < this.participation.person.altNames.length; i++){ + return this.participation.person.altNames[i].key + } + }, } }