mirror of
https://github.com/goharbor/harbor.git
synced 2025-01-11 18:38:14 +01:00
Merge pull request #1171 from wknet123/master-handle-email-error
Fixed handle errors about sending email.
This commit is contained in:
commit
5acf2c7195
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user