add additional contact component

This commit is contained in:
Matthieu Bessat 2020-07-22 23:14:12 +02:00
parent 4be9fea9fc
commit 419e6a1a71
4 changed files with 273 additions and 47 deletions

View file

@ -343,6 +343,12 @@ export default {
}
return i
})
if (Array.isArray(data.contacts.peoples)) {
data.contacts.peoples = data.contacts.peoples.map(p => {
delete p._id
return p
})
}
this.$apitator.put('/delegate', data, { withAuth: true }).then(() => {
this.isSaving = false
this.$store.commit('ADD_ALERT', {