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