Fixed handle errors about sending email.

This commit is contained in:
kunw 2016-11-25 17:32:44 +08:00
parent 098f1905bf
commit 499141c193

View File

@ -85,11 +85,10 @@
vm.hasError = true;
vm.errorMessage = data;
if(status === 500) {
$scope.$emit('modalTitle', $filter('tr')('error'));
$scope.$emit('modalMessage', $filter('tr')('failed_to_send_email'));
$scope.$emit('raiseError', true);
}
$scope.$emit('modalTitle', $filter('tr')('error'));
$scope.$emit('modalMessage', $filter('tr')('failed_to_send_email'));
$scope.$emit('raiseError', true);
console.log('Failed to send mail:' + data);
}