working on add contract

This commit is contained in:
Paul Wilde 2023-01-30 15:15:29 +00:00
parent 2dfd7007c9
commit 784ab71557

View file

@ -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