mirror of
https://github.com/harness/drone.git
synced 2025-05-10 15:32:51 +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}
|
repoMetadata={repoMetadata}
|
||||||
title={getString('commits')}
|
title={getString('commits')}
|
||||||
dataTooltipId="repositoryCommits"
|
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)}>
|
<PageBody error={getErrorMessage(error || errorCommits)} retryOnError={voidFn(refetch)}>
|
||||||
|
Loading…
Reference in New Issue
Block a user