mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
pass props to ButtonLocation
This commit is contained in:
parent
9d1166d8fc
commit
966292cdd5
@ -1,6 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<li>
|
<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>
|
<i class="fa fa-map-marker"></i>
|
||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
@ -8,10 +10,12 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name: "ButtonLocation"
|
name: "ButtonLocation",
|
||||||
|
props: ['person'],
|
||||||
|
methods: {
|
||||||
|
assignAddress() {
|
||||||
|
console.log('assignAddress id', this.person.current_household_address.address_id);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
|
||||||
|
|
||||||
</style>
|
|
||||||
|
@ -128,7 +128,6 @@ export default {
|
|||||||
console.log('payload from parent', payload);
|
console.log('payload from parent', payload);
|
||||||
|
|
||||||
this.$store.dispatch('updateLocation', payload);
|
this.$store.dispatch('updateLocation', payload);
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
@ -13,7 +13,8 @@
|
|||||||
<td>
|
<td>
|
||||||
<ul class="record_actions">
|
<ul class="record_actions">
|
||||||
<button-location
|
<button-location
|
||||||
v-if="hasCurrentHouseholdAddress">
|
v-if="hasCurrentHouseholdAddress"
|
||||||
|
v-bind:person="participation.person">
|
||||||
</button-location>
|
</button-location>
|
||||||
<li>
|
<li>
|
||||||
<on-the-fly
|
<on-the-fly
|
||||||
|
@ -21,7 +21,8 @@
|
|||||||
<td>
|
<td>
|
||||||
<ul class="record_actions">
|
<ul class="record_actions">
|
||||||
<button-location
|
<button-location
|
||||||
v-if="hasCurrentHouseholdAddress">
|
v-if="hasCurrentHouseholdAddress"
|
||||||
|
v-bind:person="resource.resource">
|
||||||
</button-location>
|
</button-location>
|
||||||
<li>
|
<li>
|
||||||
<on-the-fly
|
<on-the-fly
|
||||||
|
@ -12,11 +12,10 @@ const root = window.vueRootComponent;
|
|||||||
* Load all App component, for AccompanyingCourse edition page
|
* Load all App component, for AccompanyingCourse edition page
|
||||||
*/
|
*/
|
||||||
if (root === 'app') {
|
if (root === 'app') {
|
||||||
|
|
||||||
initPromise.then(store => {
|
initPromise.then(store => {
|
||||||
|
|
||||||
const i18n = _createI18n(appMessages);
|
const i18n = _createI18n(appMessages);
|
||||||
|
|
||||||
const app = createApp({
|
const app = createApp({
|
||||||
template: `<app></app>`,
|
template: `<app></app>`,
|
||||||
})
|
})
|
||||||
@ -31,11 +30,10 @@ if (root === 'app') {
|
|||||||
* Load only Banner sub-component, for all others AccompanyingCourse page
|
* Load only Banner sub-component, for all others AccompanyingCourse page
|
||||||
*/
|
*/
|
||||||
if (root === 'banner') {
|
if (root === 'banner') {
|
||||||
|
|
||||||
initPromise.then(store => {
|
initPromise.then(store => {
|
||||||
|
|
||||||
const i18n = _createI18n(appMessages);
|
const i18n = _createI18n(appMessages);
|
||||||
|
|
||||||
const app = createApp({
|
const app = createApp({
|
||||||
template: `<banner></banner>`,
|
template: `<banner></banner>`,
|
||||||
})
|
})
|
||||||
@ -44,5 +42,5 @@ if (root === 'banner') {
|
|||||||
.component('banner', Banner)
|
.component('banner', Banner)
|
||||||
.mount('#banner-accompanying-course');
|
.mount('#banner-accompanying-course');
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user