mirror of
https://github.com/goharbor/harbor.git
synced 2025-02-02 13:01:23 +01:00
Fixed handle errors about sending email.
This commit is contained in:
parent
098f1905bf
commit
499141c193
@ -85,11 +85,10 @@
|
|||||||
vm.hasError = true;
|
vm.hasError = true;
|
||||||
vm.errorMessage = data;
|
vm.errorMessage = data;
|
||||||
|
|
||||||
if(status === 500) {
|
$scope.$emit('modalTitle', $filter('tr')('error'));
|
||||||
$scope.$emit('modalTitle', $filter('tr')('error'));
|
$scope.$emit('modalMessage', $filter('tr')('failed_to_send_email'));
|
||||||
$scope.$emit('modalMessage', $filter('tr')('failed_to_send_email'));
|
$scope.$emit('raiseError', true);
|
||||||
$scope.$emit('raiseError', true);
|
|
||||||
}
|
|
||||||
console.log('Failed to send mail:' + data);
|
console.log('Failed to send mail:' + data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user