Move the last bits of the settings package to the user package

This commit is contained in:
Patrick Jentsch
2023-04-06 08:42:21 +02:00
parent 6abf119c0c
commit 77fc8a42f1
7 changed files with 52 additions and 50 deletions

View File

@ -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 }};