Commit 077617d5 authored by Jacob Schatz's avatar Jacob Schatz

Adds commit link to list of files in tree view.

parent 85b358ed
......@@ -48,7 +48,9 @@ export default RepoFile;
</td>
<td v-if="!isMini" class="hidden-sm hidden-xs">
<div class="commit-message">{{file.lastCommitMessage}}</div>
<div class="commit-message">
<a :href="file.lastCommitUrl">{{file.lastCommitMessage}}</a>
</div>
</td>
<td v-if="!isMini" class="hidden-xs">
......
......@@ -216,12 +216,12 @@ const RepoHelper = {
},
serializeRepoEntity(type, entity) {
const { url, name, icon } = entity;
const { url, name, icon, last_commit } = entity;
return {
type,
name,
url,
lastCommitUrl: `${Store.projectUrl}/commit/${last_commit.id}`,
icon: RepoHelper.toFA(icon),
level: 0,
loading: false,
......
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