mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-22 23:53:50 +00:00
condition on persons to see button location
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
<td>
|
||||
<ul class="record_actions">
|
||||
<button-location
|
||||
v-if="!participation.endDate">
|
||||
v-if="hasCurrentHouseholdAddress">
|
||||
</button-location>
|
||||
<li>
|
||||
<on-the-fly
|
||||
@@ -60,5 +60,14 @@ export default {
|
||||
},
|
||||
props: ['participation'],
|
||||
emits: ['remove', 'close'],
|
||||
computed: {
|
||||
hasCurrentHouseholdAddress() {
|
||||
if ( !this.participation.endDate
|
||||
&& this.participation.person.current_household_address !== null ) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user