Skip to content

Commit

Permalink
Hide 'Start Last Run' button on topology overview page when no PLR pr…
Browse files Browse the repository at this point in the history
…esent
  • Loading branch information
vikram-raj committed May 1, 2020
1 parent 917ea7e commit b58c0c1
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -23,8 +23,9 @@ const TriggerLastRunButton: React.FC<TriggerLastRunButtonProps> = ({
const { label, callback, accessReview } = rerunPipelineAndStay(PipelineModel, latestRun);
const isAllowed = useAccessReview(accessReview, impersonate);
return (
isAllowed && (
<Button variant="secondary" onClick={callback} isDisabled={pipelineRuns.length === 0}>
isAllowed &&
pipelineRuns.length && (
<Button variant="secondary" onClick={callback}>
{label}
</Button>
)
Expand Down

0 comments on commit b58c0c1

Please sign in to comment.