mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 23:23:51 +00:00
pass props to ButtonLocation
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
<template>
|
||||
<li>
|
||||
<button class="btn btn-sm btn-secondary" :title="$t('courselocation.assign_course_address')">
|
||||
<button class="btn btn-sm btn-secondary"
|
||||
@click="assignAddress"
|
||||
:title="$t('courselocation.assign_course_address')">
|
||||
<i class="fa fa-map-marker"></i>
|
||||
</button>
|
||||
</li>
|
||||
@@ -8,10 +10,12 @@
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "ButtonLocation"
|
||||
name: "ButtonLocation",
|
||||
props: ['person'],
|
||||
methods: {
|
||||
assignAddress() {
|
||||
console.log('assignAddress id', this.person.current_household_address.address_id);
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
|
@@ -128,7 +128,6 @@ export default {
|
||||
console.log('payload from parent', payload);
|
||||
|
||||
this.$store.dispatch('updateLocation', payload);
|
||||
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
@@ -13,7 +13,8 @@
|
||||
<td>
|
||||
<ul class="record_actions">
|
||||
<button-location
|
||||
v-if="hasCurrentHouseholdAddress">
|
||||
v-if="hasCurrentHouseholdAddress"
|
||||
v-bind:person="participation.person">
|
||||
</button-location>
|
||||
<li>
|
||||
<on-the-fly
|
||||
|
@@ -21,7 +21,8 @@
|
||||
<td>
|
||||
<ul class="record_actions">
|
||||
<button-location
|
||||
v-if="hasCurrentHouseholdAddress">
|
||||
v-if="hasCurrentHouseholdAddress"
|
||||
v-bind:person="resource.resource">
|
||||
</button-location>
|
||||
<li>
|
||||
<on-the-fly
|
||||
|
Reference in New Issue
Block a user