vue personRenderBox: adding an option to display householdLink

This commit is contained in:
Mathieu Jaumotte 2021-09-06 19:39:52 +02:00
parent dba3ede9e1
commit e99a371f3a
2 changed files with 3 additions and 1 deletions

View File

@ -5,6 +5,7 @@
addId : false,
addEntity: false,
addLink: false,
addHouseholdLink: true,
addAltNames: true,
addAge : false,
hLevel : 3,

View File

@ -57,7 +57,8 @@
<p v-else class="chill-no-data-statement">
{{ $t('renderbox.household_without_address') }}
</p>
<a :href="getCurrentHouseholdUrl"
<a v-if="options.addHouseholdLink === true"
:href="getCurrentHouseholdUrl"
:title="$t('persons_associated.show_household_number', {id: person.current_household_id})">
<span class="badge rounded-pill bg-chill-beige">
<i class="fa fa-fw fa-home"></i><!--{{ $t('persons_associated.show_household') }}-->