Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -31,13 +31,13 @@ export default {
{ slug: 'debug', title: 'Debug' }
],
modules_logged_in: [
{ slug: 'home', title: 'Home' },
{ slug: 'shows', title: 'Sendungen verwalten' },
{ slug: 'files', title: 'Dateien und Playlists' },
{ slug: 'emissions', title: 'Sendezeiten'},
{ slug: 'settings', title: 'Settings' },
{ slug: 'credits', title: 'Credits' },
{ slug: 'debug', title: 'Debug' }
{ slug: 'home', title: 'Home', superusersOnly: false },
{ slug: 'shows', title: 'Shows', superusersOnly: false },
{ slug: 'files', title: 'Files & Playlists', superusersOnly: false },
{ slug: 'emissions', title: 'Emissions', superusersOnly: true },
{ slug: 'settings', title: 'Settings', superusersOnly: false },
{ slug: 'credits', title: 'Credits', superusersOnly: false },
{ slug: 'debug', title: 'Debug', superusersOnly: true }
],
user: {
name: '',
......
......@@ -40,6 +40,8 @@
<b-nav-item
v-for="mod in modules"
:key="mod.slug"
:active="mod.slug === $route.name"
:disabled="mod.superusersOnly && !$parent.user.steeringUser.is_superuser"
:to="mod.slug"
>
{{ mod.title }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment