project tab fixes

This commit is contained in:
Jake Potrebic 2021-03-17 23:37:10 -07:00
parent 5056930ca3
commit feca5a34c2
No known key found for this signature in database
GPG Key ID: 7C58557EC9C421F8
3 changed files with 5 additions and 6 deletions

View File

@ -94,7 +94,7 @@
<v-tab v-for="tab in tabs" :key="tab.title" :exact="!!tab.exact" :to="tab.external ? '/linkout?remoteUrl=' + tab.link : tab.link" nuxt>
<v-icon left>{{ tab.icon }}</v-icon>
{{ tab.title }}
<v-icon v-if="tab.external" x-small>mdi-open-in-new</v-icon>
<v-icon v-if="tab.external" small class="mb-1 ml-1" color="primary">mdi-open-in-new</v-icon>
</v-tab>
</v-tabs>
</v-row>
@ -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 });

View File

@ -75,7 +75,6 @@
</div>
<v-divider />
<div>
<!--TODO license stuff is outta whack. Different object schema on request and post-->
<h2>
{{ $t('project.settings.license') }}&nbsp;<small>{{ $t('project.settings.optional') }}</small>
</h2>
@ -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() {}

View File

@ -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[];