mirror of
https://github.com/HangarMC/Hangar.git
synced 2025-02-11 14:52:01 +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-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>
|
<v-icon left>{{ tab.icon }}</v-icon>
|
||||||
{{ tab.title }}
|
{{ 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-tab>
|
||||||
</v-tabs>
|
</v-tabs>
|
||||||
</v-row>
|
</v-row>
|
||||||
@ -165,8 +165,8 @@ export default class ProjectPage extends Vue {
|
|||||||
if (this.project.settings.issues) {
|
if (this.project.settings.issues) {
|
||||||
tabs.push({ title: this.$t('project.tabs.issues'), icon: 'mdi-bug', link: this.project.settings.issues, external: true });
|
tabs.push({ title: this.$t('project.tabs.issues'), icon: 'mdi-bug', link: this.project.settings.issues, external: true });
|
||||||
}
|
}
|
||||||
if (this.project.settings.sources) {
|
if (this.project.settings.source) {
|
||||||
tabs.push({ title: this.$t('project.tabs.source'), icon: 'mdi-code-tags', link: this.project.settings.sources, external: true });
|
tabs.push({ title: this.$t('project.tabs.source'), icon: 'mdi-code-tags', link: this.project.settings.source, external: true });
|
||||||
}
|
}
|
||||||
if (this.project.settings.support) {
|
if (this.project.settings.support) {
|
||||||
tabs.push({ title: this.$t('project.tabs.support'), icon: 'mdi-chat-question', link: this.project.settings.support, external: true });
|
tabs.push({ title: this.$t('project.tabs.support'), icon: 'mdi-chat-question', link: this.project.settings.support, external: true });
|
||||||
|
@ -75,7 +75,6 @@
|
|||||||
</div>
|
</div>
|
||||||
<v-divider />
|
<v-divider />
|
||||||
<div>
|
<div>
|
||||||
<!--TODO license stuff is outta whack. Different object schema on request and post-->
|
|
||||||
<h2>
|
<h2>
|
||||||
{{ $t('project.settings.license') }} <small>{{ $t('project.settings.optional') }}</small>
|
{{ $t('project.settings.license') }} <small>{{ $t('project.settings.optional') }}</small>
|
||||||
</h2>
|
</h2>
|
||||||
@ -283,7 +282,6 @@ export default class ProjectManagePage extends HangarProjectMixin {
|
|||||||
return ['MIT', 'Apache 2.0', 'GPL', 'LGPL', '(custom)'];
|
return ['MIT', 'Apache 2.0', 'GPL', 'LGPL', '(custom)'];
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO implement
|
|
||||||
save() {
|
save() {
|
||||||
this.loading.save = true;
|
this.loading.save = true;
|
||||||
this.$api
|
this.$api
|
||||||
@ -299,6 +297,7 @@ export default class ProjectManagePage extends HangarProjectMixin {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO implement
|
||||||
rename() {}
|
rename() {}
|
||||||
|
|
||||||
softDelete() {}
|
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 {
|
interface ProjectSettings {
|
||||||
homepage: string | null;
|
homepage: string | null;
|
||||||
issues: string | null;
|
issues: string | null;
|
||||||
sources: string | null;
|
source: string | null;
|
||||||
support: string | null;
|
support: string | null;
|
||||||
license: License;
|
license: License;
|
||||||
keywords: string[];
|
keywords: string[];
|
||||||
|
Loading…
Reference in New Issue
Block a user