Commit b2ec3e1c authored by Natalia Tepluhina's avatar Natalia Tepluhina

Merge branch 'ph/fixLastCommitWidgetLinks' into 'master'

Fix last commit widget links not working

See merge request gitlab-org/gitlab!38264
parents ef1d05d0 f37febe2
......@@ -51,7 +51,7 @@ export default {
<div class="js-file-title file-title-flex-parent">
<div class="file-header-content">
<i aria-hidden="true" class="fa fa-file-text-o fa-fw"></i>
<gl-link :href="blob.webUrl">
<gl-link :href="blob.webPath">
<strong>{{ blob.name }}</strong>
</gl-link>
</div>
......
......@@ -8,14 +8,14 @@ query pathLastCommit($projectPath: ID!, $path: String, $ref: String!) {
titleHtml
descriptionHtml
message
webUrl
webPath
authoredDate
authorName
authorGravatar
author {
name
avatarUrl
webUrl
webPath
}
signatureHtml
pipelines(ref: $ref, first: 1) {
......
......@@ -30,7 +30,7 @@ describe('Repository file preview component', () => {
it('renders file HTML', () => {
factory({
webUrl: 'http://test.com',
webPath: 'http://test.com',
name: 'README.md',
});
......@@ -43,7 +43,7 @@ describe('Repository file preview component', () => {
it('handles hash after render', () => {
factory({
webUrl: 'http://test.com',
webPath: 'http://test.com',
name: 'README.md',
});
......@@ -59,7 +59,7 @@ describe('Repository file preview component', () => {
it('renders loading icon', () => {
factory({
webUrl: 'http://test.com',
webPath: 'http://test.com',
name: 'README.md',
});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment