mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 19:51:09 -04:00
refactor notification of user have no email
This commit is contained in:
@ -635,7 +635,7 @@ export default {
|
||||
return true
|
||||
}
|
||||
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
|
||||
}
|
||||
window.toastr['error'](this.$tc('estimates.something_went_wrong'))
|
||||
|
||||
@ -595,7 +595,7 @@ export default {
|
||||
return true
|
||||
}
|
||||
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
|
||||
}
|
||||
window.toastr['error'](this.$tc('estimates.something_went_wrong'))
|
||||
|
||||
@ -265,7 +265,7 @@ export default {
|
||||
return true
|
||||
}
|
||||
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
|
||||
}
|
||||
window.toastr['error'](this.$tc('estimates.something_went_wrong'))
|
||||
|
||||
Reference in New Issue
Block a user