Skip to content
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

Merged
merged 1 commit into from
Nov 26, 2018

Conversation

rileyjbauer
Copy link
Contributor

@rileyjbauer rileyjbauer commented Nov 26, 2018

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 Reviewable

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.
Copy link
Contributor

@yebrahim yebrahim left a 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}
Copy link
Contributor

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.

@k8s-ci-robot
Copy link
Contributor

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit f59c226 into master Nov 26, 2018
@IronPan IronPan deleted the disable-back-button branch June 28, 2019 18:46
Linchin pushed a commit to Linchin/pipelines that referenced this pull request Apr 11, 2023
* Upload workflow status while timeout

* Fix unit tests
magdalenakuhn17 pushed a commit to magdalenakuhn17/pipelines that referenced this pull request Oct 22, 2023
HumairAK referenced this pull request in red-hat-data-services/data-science-pipelines Mar 11, 2024
…n Task (#377)

* enhance the when condition UI display

* Fix UI display issue if custom task definend for Tekton Task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants