mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-28 12:11:08 -04:00
refactor notification of user have no email
This commit is contained in:
@ -635,7 +635,7 @@ export default {
|
|||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
if (response.data.error === 'user_email_does_not_exist') {
|
if (response.data.error === 'user_email_does_not_exist') {
|
||||||
window.toastr['success'](this.$tc('estimates.user_email_does_not_exist'))
|
window.toastr['error'](this.$tc('estimates.user_email_does_not_exist'))
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
window.toastr['error'](this.$tc('estimates.something_went_wrong'))
|
window.toastr['error'](this.$tc('estimates.something_went_wrong'))
|
||||||
|
|||||||
@ -595,7 +595,7 @@ export default {
|
|||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
if (response.data.error === 'user_email_does_not_exist') {
|
if (response.data.error === 'user_email_does_not_exist') {
|
||||||
window.toastr['success'](this.$tc('estimates.user_email_does_not_exist'))
|
window.toastr['error'](this.$tc('estimates.user_email_does_not_exist'))
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
window.toastr['error'](this.$tc('estimates.something_went_wrong'))
|
window.toastr['error'](this.$tc('estimates.something_went_wrong'))
|
||||||
|
|||||||
@ -265,7 +265,7 @@ export default {
|
|||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
if (response.data.error === 'user_email_does_not_exist') {
|
if (response.data.error === 'user_email_does_not_exist') {
|
||||||
window.toastr['success'](this.$tc('estimates.user_email_does_not_exist'))
|
window.toastr['error'](this.$tc('estimates.user_email_does_not_exist'))
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
window.toastr['error'](this.$tc('estimates.something_went_wrong'))
|
window.toastr['error'](this.$tc('estimates.something_went_wrong'))
|
||||||
|
|||||||
Reference in New Issue
Block a user