-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Disables back button when there is no history #377
Conversation
This can happen whenever a user opens up a page from a URL. A common way to hit this is to create a run from a notebook and click the link to see it in the UI.
8f6f7cc
to
8473b06
Compare
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.
/lgtm
/approve
</IconButton> | ||
<div> {/* Div needed because we sometimes disable a button within a tooltip */} | ||
<IconButton className={css.backLink} | ||
disabled={this.props.history!.length < 2} |
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.
This check doesn't handle the case where the back button would take us outside of the Pipelines UI, but I don't think there's a way to handle that anyway. And maybe this behavior isn't very bad.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: yebrahim The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
* Upload workflow status while timeout * Fix unit tests
…n Task (#377) * enhance the when condition UI display * Fix UI display issue if custom task definend for Tekton Task
Fixes: #221
Previously, when users created a run from a notebook and clicked the resulting link to see it in the UI, they would see an active, clickable back button but clicking it would have no effect.
Now, when there is no browser history, the back button is still present, but it is lighter gray and has no hover animation.
This change is