Merge branch 'VM/RED-10198' into 'master'
RED-10198 - missleading error message - creating user with existing email Closes RED-10198 See merge request redactmanager/red-ui!662
This commit is contained in:
commit
ba3cb01f02
@ -101,11 +101,7 @@ export class UserDetailsComponent extends BaseFormComponent implements OnInit {
|
||||
this.closeDialog.emit(true);
|
||||
})
|
||||
.catch(error => {
|
||||
if (error.status === HttpStatusCode.Conflict) {
|
||||
this._toaster.error(_('add-edit-user.error.email-already-used'));
|
||||
} else {
|
||||
this._toaster.error(_('add-edit-user.error.generic'));
|
||||
}
|
||||
this._toaster.error(null, { error });
|
||||
this._loadingService.stop();
|
||||
});
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user