mirror of
https://github.com/HangarMC/Hangar.git
synced 2025-01-30 14:30:08 +08:00
project tab fixes
This commit is contained in:
parent
5056930ca3
commit
feca5a34c2
@ -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 });
|
||||
|
@ -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') }} <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() {}
|
||||
|
2
frontend/types/api/projects.d.ts
vendored
2
frontend/types/api/projects.d.ts
vendored
@ -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[];
|
||||
|
Loading…
Reference in New Issue
Block a user