diff --git a/src/views/contracts/ContractEdit.vue b/src/views/contracts/ContractEdit.vue index bd1860e..8da051d 100644 --- a/src/views/contracts/ContractEdit.vue +++ b/src/views/contracts/ContractEdit.vue @@ -69,9 +69,11 @@ Save Add { console.log("Saved Contract : " + JSON.stringify(resp.data)) this.saving = false - if (resp.data == true) { - let stat = resp.data - if (stat.status == true ) { - if (this.contract.isNew) { - this.$emit('contractupdate', resp.data) - } else { - this.$emit('contractupdate', resp.data) - } + let stat = resp.data + if (stat.status == true ) { + if (this.contract.isNew) { + this.$emit('contractupdate', resp.data) } else { - this.errors.push("Error Saving... ") + this.$emit('contractupdate', resp.data) } - } else { + } else { this.errors.push("Contract not saved.") console.log("Not Saved") } diff --git a/src/views/medfeeds/MedFeedsEdit.vue b/src/views/medfeeds/MedFeedsEdit.vue index 86efda1..e7e26fb 100644 --- a/src/views/medfeeds/MedFeedsEdit.vue +++ b/src/views/medfeeds/MedFeedsEdit.vue @@ -51,13 +51,15 @@ - + Save Add { console.log(err) }) + .finally(()=>{ + this.saving = false + }) }, showCustomerSearch(){ this.search[0] = true