-
Notifications
You must be signed in to change notification settings - Fork 190
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
frontend: Hide back button with null backLink #2034
Conversation
bb8c6d3
to
6834205
Compare
I think instead just not adding the Can you please explain a bit more why this is necessary? |
@illume The backLink value is by default the empty string
Previously passing in a null value did the same thing as passing in the empty string. Unless this is the intended behavior, we are missing the functionality to handle the null string as specified |
Yeah. By default we have had the backLink, so we should just fix the null case which is what docs mean. The backLink={false} should also be the same as null. |
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.
My comment was in the context of MainInfoSection. You need to account for null
there, but checking SectionBox, where it is then used, we shouldn't update it to receive null but instead just pass false to it from MainInfoSection as that's what null means.
38be0e6
to
027f445
Compare
Ran into merge conflict issues...reopening here #2040 |
We shouldn't close PRs because of merge conflicts. I am reopening this and closing the new one since this one has the context from previous reviews. |
35d1827
to
1c6d7a6
Compare
this is a nit but the careful that when changing the commit message it still works |
This fix explicitly handles the null case in getBackLink() to ensure that no back button will be shown, as defined in MainInfoSectionProps. Fixes: #2033 Signed-off-by: Evangelos Skopelitis <eskopelitis@microsoft.com>
Why? I think the only thing not according to format is the first |
This fix explicitly handles the null case in
getBackLink()
to ensure that no back button will be shown, as defined in MainInfoSectionProps.Fixes: #2033
Testing
frontend/src/components/crd/Details.tsx
and set backLink to null in theMainInfoSection
componentnpm start
) and navigate to the Custom Resources page