[IP2WS2324G2-156] [IP2WS2324G2-157] Profil - Frontend Logik, Backend
- created
renderUser()
function in profile.component.ts - created
checkGroups()
function in profile.component.ts andfindUserInGroup()
in GroupService - created
checkTests()
function in profile.component.ts andfindUserInTest()
in TestService - created
redirectToPage()
function in profile.component.ts so buttons could redirect to different Pages (depends on if user did a test and if user has groups) - installed ngx-avatar and added it to profile.component.html and navbar.component.html
- created
replaceAvatar()
function in profile.component.ts andsaveAvatar()
in UserService - created
renderProfilePic()
function in navbar.component.ts - added a new File named avatars to the asssets Directory to store the avatars and render it in the modal
- fixed
checkLogin
in navbar.component.ts, so the username avatar appears in the navbar when user is logged in without reloading the page - created serevr Routes for group and personalitytest
Edited by Karla Alkhouri