Commit c22e8cfb authored by jackie / Andrea Ida Malkah Klaura's avatar jackie / Andrea Ida Malkah Klaura
Browse files

FIX: header menu

* deactivate superuser entries for standard users
* consistent naming
parent 965caeb0
...@@ -31,13 +31,13 @@ export default { ...@@ -31,13 +31,13 @@ export default {
{ slug: 'debug', title: 'Debug' } { slug: 'debug', title: 'Debug' }
], ],
modules_logged_in: [ modules_logged_in: [
{ slug: 'home', title: 'Home' }, { slug: 'home', title: 'Home', superusersOnly: false },
{ slug: 'shows', title: 'Sendungen verwalten' }, { slug: 'shows', title: 'Shows', superusersOnly: false },
{ slug: 'files', title: 'Dateien und Playlists' }, { slug: 'files', title: 'Files & Playlists', superusersOnly: false },
{ slug: 'emissions', title: 'Sendezeiten'}, { slug: 'emissions', title: 'Emissions', superusersOnly: true },
{ slug: 'settings', title: 'Settings' }, { slug: 'settings', title: 'Settings', superusersOnly: false },
{ slug: 'credits', title: 'Credits' }, { slug: 'credits', title: 'Credits', superusersOnly: false },
{ slug: 'debug', title: 'Debug' } { slug: 'debug', title: 'Debug', superusersOnly: true }
], ],
user: { user: {
name: '', name: '',
......
...@@ -40,6 +40,8 @@ ...@@ -40,6 +40,8 @@
<b-nav-item <b-nav-item
v-for="mod in modules" v-for="mod in modules"
:key="mod.slug" :key="mod.slug"
:active="mod.slug === $route.name"
:disabled="mod.superusersOnly && !$parent.user.steeringUser.is_superuser"
:to="mod.slug" :to="mod.slug"
> >
{{ mod.title }} {{ mod.title }}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment