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')
|
||||
return error.value
|
||||
}
|
||||
if (!deal.status) {
|
||||
error.value = __('Status is required')
|
||||
return error.value
|
||||
}
|
||||
isDealCreating.value = true
|
||||
},
|
||||
onSuccess(name) {
|
||||
|
||||
@ -122,6 +122,10 @@ function createNewLead() {
|
||||
error.value = __('Invalid Email')
|
||||
return error.value
|
||||
}
|
||||
if (!lead.status) {
|
||||
error.value = __('Status is required')
|
||||
return error.value
|
||||
}
|
||||
isLeadCreating.value = true
|
||||
},
|
||||
onSuccess(data) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user