allow to edit civility in onTheFly

This commit is contained in:
2022-05-06 12:54:01 +02:00
parent 6abbf9bf21
commit 6c246a0d38
6 changed files with 10 additions and 11 deletions

View File

@@ -303,6 +303,7 @@ export default {
'id': responsePerson.id
},
'start_date': {
// TODO: use date.js methods (low priority)
'datetime': `${new Date().toISOString().split('T')[0]}T00:00:00+02:00`
},
'holder': false,
@@ -315,7 +316,7 @@ export default {
},
'composition': null
};
makeFetch('POST', '/api/1.0/person/household/members/move.json', member)
return makeFetch('POST', '/api/1.0/person/household/members/move.json', member)
.then(_response => {
makeFetch('POST', `/api/1.0/person/household/${responseHousehold.id}/address.json`, address)
.then(_response => {})