refactor notification of user have no email

This commit is contained in:
Jay_Makwana
2019-11-19 18:40:41 +05:30
parent 2a8c1deff6
commit 360b353ab1
3 changed files with 3 additions and 3 deletions

View File

@ -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'))

View File

@ -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'))

View File

@ -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'))