fix: added validation for lead/deal status
This commit is contained in:
parent
4992640d08
commit
2ad3411bbb
@ -171,6 +171,10 @@ function createDeal() {
|
|||||||
error.value = __('Invalid Email')
|
error.value = __('Invalid Email')
|
||||||
return error.value
|
return error.value
|
||||||
}
|
}
|
||||||
|
if (!deal.status) {
|
||||||
|
error.value = __('Status is required')
|
||||||
|
return error.value
|
||||||
|
}
|
||||||
isDealCreating.value = true
|
isDealCreating.value = true
|
||||||
},
|
},
|
||||||
onSuccess(name) {
|
onSuccess(name) {
|
||||||
|
|||||||
@ -122,6 +122,10 @@ function createNewLead() {
|
|||||||
error.value = __('Invalid Email')
|
error.value = __('Invalid Email')
|
||||||
return error.value
|
return error.value
|
||||||
}
|
}
|
||||||
|
if (!lead.status) {
|
||||||
|
error.value = __('Status is required')
|
||||||
|
return error.value
|
||||||
|
}
|
||||||
isLeadCreating.value = true
|
isLeadCreating.value = true
|
||||||
},
|
},
|
||||||
onSuccess(data) {
|
onSuccess(data) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user