Commit f37febe2 authored by Phil Hughes's avatar Phil Hughes

Fix last commit widget links not working

parent 7a89ded4
...@@ -51,7 +51,7 @@ export default { ...@@ -51,7 +51,7 @@ export default {
<div class="js-file-title file-title-flex-parent"> <div class="js-file-title file-title-flex-parent">
<div class="file-header-content"> <div class="file-header-content">
<i aria-hidden="true" class="fa fa-file-text-o fa-fw"></i> <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> <strong>{{ blob.name }}</strong>
</gl-link> </gl-link>
</div> </div>
......
...@@ -8,14 +8,14 @@ query pathLastCommit($projectPath: ID!, $path: String, $ref: String!) { ...@@ -8,14 +8,14 @@ query pathLastCommit($projectPath: ID!, $path: String, $ref: String!) {
titleHtml titleHtml
descriptionHtml descriptionHtml
message message
webUrl webPath
authoredDate authoredDate
authorName authorName
authorGravatar authorGravatar
author { author {
name name
avatarUrl avatarUrl
webUrl webPath
} }
signatureHtml signatureHtml
pipelines(ref: $ref, first: 1) { pipelines(ref: $ref, first: 1) {
......
...@@ -30,7 +30,7 @@ describe('Repository file preview component', () => { ...@@ -30,7 +30,7 @@ describe('Repository file preview component', () => {
it('renders file HTML', () => { it('renders file HTML', () => {
factory({ factory({
webUrl: 'http://test.com', webPath: 'http://test.com',
name: 'README.md', name: 'README.md',
}); });
...@@ -43,7 +43,7 @@ describe('Repository file preview component', () => { ...@@ -43,7 +43,7 @@ describe('Repository file preview component', () => {
it('handles hash after render', () => { it('handles hash after render', () => {
factory({ factory({
webUrl: 'http://test.com', webPath: 'http://test.com',
name: 'README.md', name: 'README.md',
}); });
...@@ -59,7 +59,7 @@ describe('Repository file preview component', () => { ...@@ -59,7 +59,7 @@ describe('Repository file preview component', () => {
it('renders loading icon', () => { it('renders loading icon', () => {
factory({ factory({
webUrl: 'http://test.com', webPath: 'http://test.com',
name: 'README.md', 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