diff --git a/src/views/contracts/ContractEdit.vue b/src/views/contracts/ContractEdit.vue index 6ccf555..0c6d3b3 100644 --- a/src/views/contracts/ContractEdit.vue +++ b/src/views/contracts/ContractEdit.vue @@ -154,7 +154,15 @@ export default { }).then(resp => { console.log("Saved Contract : " + JSON.stringify(resp.data)) this.saving = false - this.$emit('contractupdate', resp.data) + 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