add-address sub-component key

This commit is contained in:
Mathieu Jaumotte 2021-09-16 19:33:34 +02:00
parent 8dbdc28df1
commit aae2ee32f6

View File

@ -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);