Creature properties now duplicate with up to 50 children
This commit is contained in:
@@ -53,6 +53,7 @@
|
||||
embedded
|
||||
:_id="selected"
|
||||
@removed="selected = undefined"
|
||||
@duplicated="id => selected = id"
|
||||
/>
|
||||
</template>
|
||||
</tree-detail-layout>
|
||||
|
||||
@@ -158,12 +158,12 @@ export default {
|
||||
methods: {
|
||||
getPropertyName,
|
||||
duplicate(){
|
||||
duplicateProperty.call({_id: this.currentId}, (error) => {
|
||||
duplicateProperty.call({_id: this.currentId}, (error, id) => {
|
||||
if (error) {
|
||||
console.error(error);
|
||||
}
|
||||
if (this.embedded){
|
||||
this.$emit('duplicated');
|
||||
this.$emit('duplicated', id);
|
||||
} else {
|
||||
this.$store.dispatch('popDialogStack');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user