From feca5a34c2c17298ae15def5fbf60c433a734333 Mon Sep 17 00:00:00 2001 From: Jake Potrebic Date: Wed, 17 Mar 2021 23:37:10 -0700 Subject: [PATCH] project tab fixes --- frontend/pages/_author/_slug.vue | 6 +++--- frontend/pages/_author/_slug/settings.vue | 3 +-- frontend/types/api/projects.d.ts | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/frontend/pages/_author/_slug.vue b/frontend/pages/_author/_slug.vue index 07a805057..6a03218fe 100644 --- a/frontend/pages/_author/_slug.vue +++ b/frontend/pages/_author/_slug.vue @@ -94,7 +94,7 @@ {{ tab.icon }} {{ tab.title }} - mdi-open-in-new + mdi-open-in-new @@ -165,8 +165,8 @@ export default class ProjectPage extends Vue { if (this.project.settings.issues) { tabs.push({ title: this.$t('project.tabs.issues'), icon: 'mdi-bug', link: this.project.settings.issues, external: true }); } - if (this.project.settings.sources) { - tabs.push({ title: this.$t('project.tabs.source'), icon: 'mdi-code-tags', link: this.project.settings.sources, external: true }); + if (this.project.settings.source) { + tabs.push({ title: this.$t('project.tabs.source'), icon: 'mdi-code-tags', link: this.project.settings.source, external: true }); } if (this.project.settings.support) { tabs.push({ title: this.$t('project.tabs.support'), icon: 'mdi-chat-question', link: this.project.settings.support, external: true }); diff --git a/frontend/pages/_author/_slug/settings.vue b/frontend/pages/_author/_slug/settings.vue index c1367e8cb..d3523529d 100644 --- a/frontend/pages/_author/_slug/settings.vue +++ b/frontend/pages/_author/_slug/settings.vue @@ -75,7 +75,6 @@
-

{{ $t('project.settings.license') }} {{ $t('project.settings.optional') }}

@@ -283,7 +282,6 @@ export default class ProjectManagePage extends HangarProjectMixin { return ['MIT', 'Apache 2.0', 'GPL', 'LGPL', '(custom)']; } - // TODO implement save() { this.loading.save = true; this.$api @@ -299,6 +297,7 @@ export default class ProjectManagePage extends HangarProjectMixin { }); } + // TODO implement rename() {} softDelete() {} diff --git a/frontend/types/api/projects.d.ts b/frontend/types/api/projects.d.ts index fac56565d..4044255f8 100644 --- a/frontend/types/api/projects.d.ts +++ b/frontend/types/api/projects.d.ts @@ -29,7 +29,7 @@ declare module 'hangar-api' { interface ProjectSettings { homepage: string | null; issues: string | null; - sources: string | null; + source: string | null; support: string | null; license: License; keywords: string[];