mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
bugfix emit saveFormOnTheFly and add newly created contact to suggestion list immediately
This commit is contained in:
@@ -212,7 +212,7 @@ export default {
|
||||
type = 'thirdparty'
|
||||
data = this.$refs.castThirdparty.$data.thirdparty;
|
||||
// create the new contact here, bypassing saveFormOnTheFly() -> not working here?
|
||||
const body = {
|
||||
data = {
|
||||
"type": "thirdparty",
|
||||
"kind": "child",
|
||||
"name": data.text,
|
||||
@@ -225,12 +225,6 @@ export default {
|
||||
"email": data.email,
|
||||
"address": null
|
||||
}
|
||||
postThirdparty(body)
|
||||
.then(thirdparty => new Promise((resolve, reject) => {
|
||||
// this.$parent.newPriorSuggestion(thirdparty);
|
||||
console.log('thirdparty created', thirdparty)
|
||||
resolve();
|
||||
}));
|
||||
} else {
|
||||
type = this.$refs.castNew.radioType;
|
||||
data = this.$refs.castNew.castDataByType();
|
||||
|
Reference in New Issue
Block a user