mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 13:54:23 +00:00
add-address sub-component key
This commit is contained in:
parent
8dbdc28df1
commit
aae2ee32f6
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<add-address
|
<add-address
|
||||||
v-bind:key="context.entity.name"
|
v-bind:key="key"
|
||||||
v-bind:context="context"
|
v-bind:context="context"
|
||||||
v-bind:options="options"
|
v-bind:options="options"
|
||||||
v-bind:addressChanged="submitAddress"
|
v-bind:addressChanged="submitAddress"
|
||||||
@ -25,7 +25,12 @@ export default {
|
|||||||
},
|
},
|
||||||
options() {
|
options() {
|
||||||
return this.addAddress.options;
|
return this.addAddress.options;
|
||||||
|
},
|
||||||
|
key() {
|
||||||
|
return (this.context.edit) ? 'address_' + this.context.addressId
|
||||||
|
: this.context.entity.name + '_' + this.context.entity.id ;
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
console.log('AddAddress: data context', this.context);
|
console.log('AddAddress: data context', this.context);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user