-
Notifications
You must be signed in to change notification settings - Fork 172
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
Only show the Request Access button when the user is logged in #5054
Conversation
Job #11050: Bundle Size — 63.2MiB (~+0.01%).
Warning Bundle contains 58 duplicate packages – View duplicate packages Bundle metrics
Bundle size by type
View job #11050 report View fix/request-access-logged-in branch activity View project dashboard |
projectId?: string | ||
loggedIn?: boolean |
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.
Do these need to be optional?
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.
nah I don't think they do – I adapted to the existing ?:
but it makes sense to have them explicit
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.
fixed in be43df5
(#5054) (and 615d73a
(#5054))
Fix #5053
Problem:
The
ProjectNotFound
page shows theRequest access
button if the project is collaborative, but it should only show it if the user is also logged in.Fix:
Add a flag for it. I passed the value coming from the persistence's context – the same could also be done with
getLoginState
directly inside the component but it felt more consistent this way.Happy to change it if somebody feels otherwise!