move postPerson fetch method from grant-children to children (to squash)

This commit is contained in:
2021-08-25 21:25:39 +02:00
parent e369e43b00
commit 25f43bc758
3 changed files with 36 additions and 30 deletions

View File

@@ -80,6 +80,7 @@ import PersonRenderBox from '../Entity/PersonRenderBox.vue';
export default {
name: "OnTheFlyPerson",
props: ['id', 'type', 'action'],
//emits: ['createAction'],
components: {
PersonRenderBox
},
@@ -160,15 +161,6 @@ export default {
//console.log('get person', this.person);
resolve();
}));
},
postData() {
console.log('postdata before fetch', this.person);
postPerson(this.person)
.then(person => new Promise((resolve, reject) => {
this.person = person;
this.$store.commit('newPriorSuggestion', person);
resolve();
}));
}
}
}