feat(ui): how history only for '' project type

This commit is contained in:
fiftin 2024-03-11 01:31:32 +01:00
parent d9ea092c6c
commit 48bf414202
3 changed files with 16 additions and 3 deletions

View File

@ -6,7 +6,11 @@
</v-toolbar>
<v-tabs show-arrows class="pl-4">
<v-tab key="history" :to="`/project/${projectId}/history`">{{ $t('history') }}</v-tab>
<v-tab
v-if="projectType === ''"
key="history"
:to="`/project/${projectId}/history`"
>{{ $t('history') }}</v-tab>
<v-tab key="activity" :to="`/project/${projectId}/activity`">{{ $t('activity') }}</v-tab>
<v-tab
v-if="can(USER_PERMISSIONS.updateProject)"

View File

@ -8,7 +8,11 @@
</v-toolbar>
<v-tabs show-arrows class="pl-4">
<v-tab key="history" :to="`/project/${projectId}/history`">{{ $t('history') }}</v-tab>
<v-tab
v-if="projectType === ''"
key="history"
:to="`/project/${projectId}/history`"
>{{ $t('history') }}</v-tab>
<v-tab key="activity" :to="`/project/${projectId}/activity`">{{ $t('activity') }}</v-tab>
<v-tab
v-if="can(USER_PERMISSIONS.updateProject)"

View File

@ -13,7 +13,11 @@
</v-toolbar>
<v-tabs show-arrows class="pl-4">
<v-tab key="history" :to="`/project/${projectId}/history`">{{ $t('history') }}</v-tab>
<v-tab
v-if="projectType === ''"
key="history"
:to="`/project/${projectId}/history`"
>{{ $t('history') }}</v-tab>
<v-tab key="activity" :to="`/project/${projectId}/activity`">{{ $t('activity') }}</v-tab>
<v-tab key="settings" :to="`/project/${projectId}/settings`">{{ $t('settings') }}</v-tab>
</v-tabs>
@ -76,6 +80,7 @@ export default {
components: { YesNoDialog, ProjectForm },
props: {
projectId: Number,
projectType: String,
},
data() {