aboutsummaryrefslogtreecommitdiff
path: root/packages/client/src/views/RepositoryCommit.vue
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2021-07-25 22:34:22 +0200
committerHampusM <hampus@hampusmat.com>2021-07-25 22:34:22 +0200
commit4bbf220296765a20c3ba03c5351b21618a835424 (patch)
treeda6b685a7496bceb928d397f5a073edf1083af44 /packages/client/src/views/RepositoryCommit.vue
parent7d27f9c7f1b57693dfdc0dd289015406b90984ec (diff)
Reformated the client code a bit
Diffstat (limited to 'packages/client/src/views/RepositoryCommit.vue')
-rw-r--r--packages/client/src/views/RepositoryCommit.vue6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/client/src/views/RepositoryCommit.vue b/packages/client/src/views/RepositoryCommit.vue
index f0dec4a..9818dff 100644
--- a/packages/client/src/views/RepositoryCommit.vue
+++ b/packages/client/src/views/RepositoryCommit.vue
@@ -78,8 +78,8 @@ export default defineComponent({
const is_loading: Ref<boolean> = ref(true);
const fetch_failed: Ref<string> = ref("");
- const fetchCommit = async(repository: string, commit_id: string) => {
- const commit_data: Commit = await fetchData(`repos/${repository}/log/${commit_id}`, fetch_failed, is_loading, "commit");
+ async function fetchCommit(repository: string, commit_id: string) {
+ const commit_data = await fetchData(`repos/${repository}/log/${commit_id}`, fetch_failed, is_loading, "commit") as Commit;
if(commit_data) {
const pretty_commit = commit_data as PrettyDateCommit;
@@ -221,4 +221,4 @@ code {
height: 100%;
}
-</style>
+</style> \ No newline at end of file