diff --git a/console-webapp/src/app/domains/domainList.component.ts b/console-webapp/src/app/domains/domainList.component.ts
index 4f8eefe81..f29e7ef2d 100644
--- a/console-webapp/src/app/domains/domainList.component.ts
+++ b/console-webapp/src/app/domains/domainList.component.ts
@@ -76,7 +76,7 @@ enum Operation {
selector: 'app-reason-dialog',
template: `
- Please provide a reason for {{ data.operation }} the domain(s):
+ Please provide the (EPP) reason for {{ data.operation }} the domain(s):
diff --git a/console-webapp/src/app/users/userDetails.component.ts b/console-webapp/src/app/users/userDetails.component.ts
index b7acde44c..2aeb5e785 100644
--- a/console-webapp/src/app/users/userDetails.component.ts
+++ b/console-webapp/src/app/users/userDetails.component.ts
@@ -67,17 +67,24 @@ export class UserDetailsComponent {
}
deleteUser() {
- this.isLoading = true;
- this.usersService.deleteUser(this.userDetails()).subscribe({
- error: (err) => {
- this._snackBar.open(err.error || err.message);
- this.isLoading = false;
- },
- complete: () => {
- this.isLoading = false;
- this.goBack();
- },
- });
+ if (
+ confirm(
+ 'This will permanently delete the user ' +
+ this.userDetails().emailAddress
+ )
+ ) {
+ this.isLoading = true;
+ this.usersService.deleteUser(this.userDetails()).subscribe({
+ error: (err) => {
+ this._snackBar.open(err.error || err.message);
+ this.isLoading = false;
+ },
+ complete: () => {
+ this.isLoading = false;
+ this.goBack();
+ },
+ });
+ }
}
goBack() {