aboutsummaryrefslogtreecommitdiff
path: root/packages/client/src
diff options
context:
space:
mode:
Diffstat (limited to 'packages/client/src')
-rw-r--r--packages/client/src/components/RepositoryHeader.vue3
-rw-r--r--packages/client/src/components/RepositoryNavbar.vue3
-rw-r--r--packages/client/src/views/Repository.vue2
3 files changed, 5 insertions, 3 deletions
diff --git a/packages/client/src/components/RepositoryHeader.vue b/packages/client/src/components/RepositoryHeader.vue
index 4d75cfb..bbb371e 100644
--- a/packages/client/src/components/RepositoryHeader.vue
+++ b/packages/client/src/components/RepositoryHeader.vue
@@ -24,7 +24,8 @@ export default defineComponent({
},
description: {
type: String,
- required: true
+ required: false,
+ default: null
}
},
components: {
diff --git a/packages/client/src/components/RepositoryNavbar.vue b/packages/client/src/components/RepositoryNavbar.vue
index ca8e92d..51ce1e9 100644
--- a/packages/client/src/components/RepositoryNavbar.vue
+++ b/packages/client/src/components/RepositoryNavbar.vue
@@ -36,7 +36,8 @@ export default defineComponent({
},
activePage: {
type: String,
- required: true
+ required: false,
+ default: null
},
hasReadme: {
type: Boolean,
diff --git a/packages/client/src/views/Repository.vue b/packages/client/src/views/Repository.vue
index 14fd62f..a3a973d 100644
--- a/packages/client/src/views/Repository.vue
+++ b/packages/client/src/views/Repository.vue
@@ -2,7 +2,7 @@
<div class="container">
<RepositoryHeader :name="name" :description="description" />
<RepositoryNavbar
- :repository="$router.currentRoute._rawValue.params.repo" :active-page="$router.currentRoute._rawValue.path.split('/')[2]"
+ :repository="$route.params.repo" :active-page="$route.path.split('/')[2]"
:has-readme="has_readme" />
<router-view v-if="!error" />
<template v-else>