mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 10:07:08 +00:00
Add configuration settings tab to project navigation bar.
Only for admin users.
This commit is contained in:
@@ -1,6 +1,15 @@
|
||||
<template>
|
||||
<v-tabs :value="tab" show-arrows>
|
||||
<v-tabs :value="tab" show-arrows v-if="page != 'configuration'">
|
||||
<v-tab v-for="tab, index in tabs" :key="index" link :to="tabLink(tab.href)" v-text="tab.text"></v-tab>
|
||||
<template v-if="adminaccess">
|
||||
<v-spacer></v-spacer>
|
||||
<v-tab :to="tabLink('configuration')" class="orange--text darken-3" title="Edit project settings"><v-icon small left color="orange darken-3">mdi-cog-outline</v-icon> Settings</v-tab>
|
||||
</template>
|
||||
</v-tabs>
|
||||
<v-tabs optional :value="0" show-arrows align-with-title v-else>
|
||||
<v-tab>Project settings</v-tab>
|
||||
<v-spacer></v-spacer>
|
||||
<v-tab :to="tabLink('summary')">Go to project</v-tab>
|
||||
</v-tabs>
|
||||
</template>
|
||||
|
||||
@@ -35,6 +44,7 @@ export default {
|
||||
return this.tabs.findIndex(t => t.href == this.page);
|
||||
},
|
||||
|
||||
...mapGetters(["adminaccess"])
|
||||
},
|
||||
|
||||
methods: {
|
||||
|
||||
Reference in New Issue
Block a user