mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2026-10-11 19:04:24 +00:00
Move the last bits of the settings package to the user package
This commit is contained in:
1 parent
6abf119c0c
commit
77fc8a42f1
7 files changed
+52
-50
No files matched your search
@@ -213,7 +213,7 @@ avatarUploadElement.addEventListener('change', () => {
|
||||
});
|
||||
|
||||
document.querySelector('#delete-avatar').addEventListener('click', () => {
|
||||
Requests.users.entity.settings.avatar.delete({{ user.hashid|tojson }})
|
||||
Requests.users.entity.avatar.delete({{ user.hashid|tojson }})
|
||||
.then(
|
||||
(response) => {
|
||||
avatarPreviewElement.src = {{ url_for('static', filename='images/user_avatar.png')|tojson }};
|
||||
|
||||
Reference in new issue
Block a user