working on add contract
This commit is contained in:
parent
2dfd7007c9
commit
784ab71557
1 changed files with 9 additions and 1 deletions
|
@ -154,7 +154,15 @@ export default {
|
|||
}).then(resp => {
|
||||
console.log("Saved Contract : " + JSON.stringify(resp.data))
|
||||
this.saving = false
|
||||
if (this.contract.isNew) {
|
||||
if (resp.data == true) {
|
||||
this.$emit('contractupdate', resp.data)
|
||||
} else {
|
||||
console.log("Not Saved")
|
||||
}
|
||||
} else {
|
||||
this.$emit('contractupdate', resp.data)
|
||||
}
|
||||
}).catch(err => {
|
||||
console.log(err)
|
||||
this.saving = false
|
||||
|
|
Loading…
Reference in a new issue