From 5c8fa80951b1bd5a6a6497eddeb1f078b7d958fa Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 18 Jul 2021 14:29:22 +0200 Subject: Fixed Vue warnings & cleaned up the Repository view a little --- packages/client/src/components/RepositoryHeader.vue | 3 ++- packages/client/src/components/RepositoryNavbar.vue | 3 ++- packages/client/src/views/Repository.vue | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) (limited to 'packages/client') 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 @@