1
0
mirror of https://github.com/google/nomulus synced 2025-12-23 06:15:42 +00:00

Provide prompt for user deletion UI (#2684)

This commit is contained in:
Pavlo Tkach
2025-02-21 15:30:03 -05:00
committed by GitHub
parent 97fc2c0b66
commit ed95d19b93
2 changed files with 19 additions and 12 deletions

View File

@@ -76,7 +76,7 @@ enum Operation {
selector: 'app-reason-dialog',
template: `
<h2 mat-dialog-title>
Please provide a reason for {{ data.operation }} the domain(s):
Please provide the (EPP) reason for {{ data.operation }} the domain(s):
</h2>
<mat-dialog-content>
<mat-form-field appearance="outline" style="width:100%">

View File

@@ -67,6 +67,12 @@ export class UserDetailsComponent {
}
deleteUser() {
if (
confirm(
'This will permanently delete the user ' +
this.userDetails().emailAddress
)
) {
this.isLoading = true;
this.usersService.deleteUser(this.userDetails()).subscribe({
error: (err) => {
@@ -79,6 +85,7 @@ export class UserDetailsComponent {
},
});
}
}
goBack() {
this.usersService.currentlyOpenUserEmail.set('');