-
Notifications
You must be signed in to change notification settings - Fork 24
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
Replace Create Explorative buttons by Links #4410
Conversation
@philippotto Could you have a look if this is a sensible way of doing this? Also, I don’t know how to combat the flow errors in router.js (all the things parsed from the url can be null or undefined, apparently) |
to={`/datasets/${dataset.owningOrganization}/${ | ||
dataset.name | ||
}/createExplorative/${type}/true`} | ||
title={`Create ${typeCapitalized} Tracing`} |
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.
title={`Create ${typeCapitalized} Tracing`} | |
title={`Create ${typeCapitalized} Annotation`} |
to={`/datasets/${dataset.owningOrganization}/${ | ||
dataset.name | ||
}/createExplorative/${type}/false`} | ||
title={`Create ${typeCapitalized} Tracing`} |
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.
title={`Create ${typeCapitalized} Tracing`} | |
title={`Create ${typeCapitalized} Annotation`} |
@@ -428,6 +434,42 @@ class ReactRouter extends React.Component<Props> { | |||
/> | |||
)} | |||
/> | |||
<Route |
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 recommend SecuredRoute
superseded by new implementation in #4439 |
URL of deployed dev instance (used for testing):
Steps to test:
Issues: