Skip to content

Commit 35c4395

Browse files
xav-carlaura-bergoens
authored andcommitted
feat(admin): this is real
1 parent a0df50e commit 35c4395

File tree

18 files changed

+420
-358
lines changed

18 files changed

+420
-358
lines changed

admin/app/components/layout/menu-bar/index.gjs

+5-5
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,6 @@ export default class MenuBar extends Component {
1919
<template>
2020
<nav class="menu-bar" aria-label={{t "components.layout.menu-bar.label"}}>
2121
<ul>
22-
<MenuBarEntry
23-
@path="authenticated.poc-quest"
24-
@icon="buildings"
25-
@title="POC QUETE"
26-
/>
2722
<MenuBarEntry
2823
@path="authenticated.organizations"
2924
@icon="buildings"
@@ -111,6 +106,11 @@ export default class MenuBar extends Component {
111106
@icon="shieldPerson"
112107
@title={{t "components.layout.menu-bar.entries.administration"}}
113108
/>
109+
<MenuBarEntry
110+
@path="authenticated.quest-creator"
111+
@icon="cogsMagic"
112+
@title={{t "components.layout.menu-bar.entries.quest-creator"}}
113+
/>
114114
{{/if}}
115115

116116
<MenuBarEntry @path="logout" @icon="power" @title={{t "components.layout.menu-bar.entries.logout"}} />

admin/app/components/layout/sidebar.gjs

+8
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,14 @@ export default class Sidebar extends Component {
113113
114114
{{/if}}
115115
116+
{{#if this.currentUser.adminMember.isSuperAdmin}}
117+
118+
<PixNavigationButton class="sidebar__link" @route="authenticated.quest-creator" @icon="cogsMagic">
119+
{{t "components.layout.sidebar.quest-creator"}}
120+
</PixNavigationButton>
121+
122+
{{/if}}
123+
116124
</:navElements>
117125
<:footer>
118126
<p class="sidebar-footer__full-name">{{this.userFullName}}</p>

0 commit comments

Comments
 (0)