Add simple alert-confirm for delete user
parent
d5ad544a1a
commit
b196cce61f
|
@ -62,10 +62,11 @@ export class UserListComponent implements OnInit {
|
||||||
}
|
}
|
||||||
|
|
||||||
deleteUser(user: User) {
|
deleteUser(user: User) {
|
||||||
this.userService.deleteUser(user)
|
if (confirm('Soll der Teilnehmer ' + user.username + ' wirklich gelöscht werden?')) {
|
||||||
.subscribe((res) => {
|
this.userService.deleteUser(user)
|
||||||
|
.subscribe((res) => {
|
||||||
})
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
filterUsersByFraction(query = '', fractionFilter) {
|
filterUsersByFraction(query = '', fractionFilter) {
|
||||||
|
|
Loading…
Reference in New Issue