mirror of
https://github.com/harness/drone.git
synced 2025-05-10 13:10:16 +08:00
fix: [code-536]: add breadcrumb on commit diff page
This commit is contained in:
parent
63c45cb0db
commit
286e6e67d3
@ -74,6 +74,16 @@ export default function RepositoryCommits() {
|
||||
repoMetadata={repoMetadata}
|
||||
title={getString('commits')}
|
||||
dataTooltipId="repositoryCommits"
|
||||
extraBreadcrumbLinks={
|
||||
commitRef && repoMetadata
|
||||
? [
|
||||
{
|
||||
label: getString('commits'),
|
||||
url: routes.toCODECommits({ repoPath: repoMetadata.path as string, commitRef: '' })
|
||||
}
|
||||
]
|
||||
: undefined
|
||||
}
|
||||
/>
|
||||
|
||||
<PageBody error={getErrorMessage(error || errorCommits)} retryOnError={voidFn(refetch)}>
|
||||
|
Loading…
Reference in New Issue
Block a user