Skip to content

Commit

Permalink
#1320 Legacy link for the Git commit result
Browse files Browse the repository at this point in the history
  • Loading branch information
dcoraboeuf committed Jul 8, 2024
1 parent 19ff044 commit 9935913
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import SearchResultComponent from "@components/framework/search/SearchResultComponent";
import LegacyLink from "@components/common/LegacyLink";
import {Typography} from "antd";

export default function Result({data}) {
export default function Result({page, data}) {
return <SearchResultComponent
title={data.item.commitShort}
title={
<LegacyLink href={page}><Typography.Text code>{data.item.commitShort}</Typography.Text></LegacyLink>
}
description={data.item.commitMessage}
/>
}
1 change: 1 addition & 0 deletions ontrack-web-core/components/search/SearchView.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export default function SearchView({q}) {
description
data
accuracy
page
}
}
}
Expand Down

0 comments on commit 9935913

Please sign in to comment.