diff --git a/app/profile/routes.py b/app/profile/routes.py index 85a68feb..60eef6ad 100644 --- a/app/profile/routes.py +++ b/app/profile/routes.py @@ -33,7 +33,7 @@ def profile(user_id): abort(403) return render_template( 'profile/profile.html.j2', - user=user.to_json_serializeable(), + user=user.to_json_serializeable() ) diff --git a/app/static/js/Utils.js b/app/static/js/Utils.js index 899147b4..c38c5620 100644 --- a/app/static/js/Utils.js +++ b/app/static/js/Utils.js @@ -227,6 +227,54 @@ class Utils { }); } + static deleteProfileAvatarRequest(userId) { + return new Promise((resolve, reject) => { + let modalElement = Utils.elementFromString( + ` +