person: add address when creating a person

This commit is contained in:
nobohan
2022-04-15 11:11:41 +02:00
parent 946ae31d11
commit ae45f5f40b
4 changed files with 43 additions and 2 deletions

View File

@@ -278,6 +278,7 @@ export default {
},
saveFormOnTheFly({ type, data }) {
console.log('saveFormOnTheFly from addPersons, type', type, ', data', data);
//TODO: create a household if address in data.
if (type === 'person') {
makeFetch('POST', '/api/1.0/person/person.json', data)
.then(response => {