mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-08-08 19:53:26 +00:00
Move delete user method in users package
This commit is contained in:
app
settings
static
js
Requests
templates
users
@@ -221,7 +221,7 @@ deleteAvatarButtonElement.addEventListener('click', () => {
|
||||
});
|
||||
|
||||
document.querySelector('#delete-user').addEventListener('click', (event) => {
|
||||
Requests.settings.entity.delete({{ user.hashid|tojson }})
|
||||
Requests.users.entity.delete({{ user.hashid|tojson }})
|
||||
.then((response) => {window.location.href = '/';});
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user