-
Notifications
You must be signed in to change notification settings - Fork 218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Navigation side bar (#1904) #1914
base: master
Are you sure you want to change the base?
Conversation
maknik
commented
Oct 16, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice PR! 😄
<template v-if="!isLoggedIn"> | ||
<v-list> | ||
<v-list-item | ||
:prepend-avatar="`https://alleavatar.allegrogroup.com/${userData.user_name}.jpg`" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since it is opensourced repository we can't hardcode such internal links. We should remove it or make it a configurable string, but the second option would require more changes also on the backend site of hermes-management.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with Mateusz, could you remove this?
return state.accessToken ? jwtDecode(state.accessToken) : { exp: 0 }; | ||
userData(state: AuthStoreState): { | ||
exp: number; | ||
full_name: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
issue: Here, we implicitly expect that JWT contains full_name
and user_name
in the token.
This may not be true for our Open Source users. I would suggest to simplify the sidebar, by removing info about logged in user.