aboutsummaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2021-07-18 14:29:22 +0200
committerHampusM <hampus@hampusmat.com>2021-07-18 14:29:22 +0200
commit5c8fa80951b1bd5a6a6497eddeb1f078b7d958fa (patch)
treef52e4dee1147c1a19be9fd96e30445a27e09a1cf /packages
parent9684e2dec933f1be80543748f1753761006c3d5f (diff)
Fixed Vue warnings & cleaned up the Repository view a little
Diffstat (limited to 'packages')
-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>