mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
onthefly create new person: adding result in suggested/selected list
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user