mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-04 12:22:47 +00:00 
			
		
		
		
	Move the last bits of the settings package to the user package
This commit is contained in:
		@@ -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