diff --git a/static/src/app/users/user-list/user-list.component.ts b/static/src/app/users/user-list/user-list.component.ts index ede8cdc..758de15 100644 --- a/static/src/app/users/user-list/user-list.component.ts +++ b/static/src/app/users/user-list/user-list.component.ts @@ -62,10 +62,11 @@ export class UserListComponent implements OnInit { } deleteUser(user: User) { - this.userService.deleteUser(user) - .subscribe((res) => { - - }) + if (confirm('Soll der Teilnehmer ' + user.username + ' wirklich gelöscht werden?')) { + this.userService.deleteUser(user) + .subscribe((res) => { + }) + } } filterUsersByFraction(query = '', fractionFilter) {