onthefly create new person: adding result in suggested/selected list

This commit is contained in:
2021-08-25 18:09:48 +02:00
parent 5884fbaffc
commit e369e43b00
4 changed files with 34 additions and 6 deletions

View File

@@ -84,9 +84,6 @@ export default {
}
},
computed: {
//action() {
// return this.$data.action;
//},
classAction() {
switch (this.action) {
case 'show':
@@ -142,7 +139,6 @@ export default {
})
},
changeActionTo(action) {
// [BUG] clic first on show item button; in modal clic edit button; close modal; clic again on show item button
this.$data.action = action;
},
saveAction() {
@@ -152,6 +148,7 @@ export default {
} else if (this.type === 'thirdparty') {
this.$refs.castThirdparty.postData();
} else {
// => save new person created
// saveAction() ==cast=to==> child.castByType() ==cast=to==> grand-child.postData()
this.$refs.castNew.castByType();
}