aboutsummaryrefslogtreecommitdiff
path: root/packages/client/src/components/RepositoryTreeTree.vue
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2021-07-03 17:45:18 +0200
committerHampusM <hampus@hampusmat.com>2021-07-03 17:45:18 +0200
commit505c18041bebf533ec63fed3790f54f5c6e1843b (patch)
treea1e4661449e8757ac6b0ad83088759c1609ebc96 /packages/client/src/components/RepositoryTreeTree.vue
parent7ee871e391cd2d2057175d54767fc71e708e32eb (diff)
Made a bunch of frontend stuff work
Diffstat (limited to 'packages/client/src/components/RepositoryTreeTree.vue')
-rw-r--r--packages/client/src/components/RepositoryTreeTree.vue8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/client/src/components/RepositoryTreeTree.vue b/packages/client/src/components/RepositoryTreeTree.vue
index 23811f7..821251e 100644
--- a/packages/client/src/components/RepositoryTreeTree.vue
+++ b/packages/client/src/components/RepositoryTreeTree.vue
@@ -35,12 +35,12 @@
</div>
</td>
<td>
- <a @click="routeToCommit(entry.last_commit.id, $event)" :href="`/${repository}/log/${entry.last_commit.id}`">
- {{ entry.last_commit.message }}
+ <a @click="routeToCommit(entry.latest_commit.id, $event)" :href="`/${repository}/log/${entry.latest_commit.id}`">
+ {{ entry.latest_commit.message }}
</a>
</td>
<td>
- {{ getPrettyLastUpdated(entry.last_commit.date) }}
+ {{ getPrettyLastUpdated(entry.latest_commit.date) }}
</td>
</tr>
</tbody>
@@ -76,7 +76,7 @@ export default {
this.$router.push(`/${this.repository}/log/${commit_id}`);
},
getPrettyLastUpdated(date) {
- return formatDistance(new Date(date), new Date(), { addSuffix: true });
+ return formatDistance(new Date(date * 1000), new Date(), { addSuffix: true });
}
}
};