fix: added throwError global method
This commit is contained in:
parent
7d79cbf5bd
commit
9af300bba8
@ -46,6 +46,11 @@ export function getScript(doctype, view = 'Form') {
|
|||||||
helpers.router = router
|
helpers.router = router
|
||||||
helpers.call = call
|
helpers.call = call
|
||||||
|
|
||||||
|
helpers.throwError = (message) => {
|
||||||
|
toast.error(message || __('An error occurred'))
|
||||||
|
throw new Error(message || __('An error occurred'))
|
||||||
|
}
|
||||||
|
|
||||||
helpers.crm = {
|
helpers.crm = {
|
||||||
makePhoneCall: makeCall,
|
makePhoneCall: makeCall,
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user