Skip to content
Snippets Groups Projects
Commit 49c1014b authored by robinwilliam.hundt's avatar robinwilliam.hundt
Browse files

UserOptions now hidden for students

fixes #135
parent 0f12bd6e
No related branches found
No related tags found
1 merge request!148Resolve "Student has empty drop-down in navigation bar"
Pipeline #91402 passed
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
<v-btn slot="activator" color="cyan" style="text-transform: none"> <v-btn slot="activator" color="cyan" style="text-transform: none">
{{ userRole }} | {{ username }} <v-icon>arrow_drop_down</v-icon> {{ userRole }} | {{ username }} <v-icon>arrow_drop_down</v-icon>
</v-btn> </v-btn>
<user-options class="mt-1"/> <user-options class="mt-1" v-if="!isStudent"/>
</v-menu> </v-menu>
</div> </div>
<slot name="toolbar-right"></slot> <slot name="toolbar-right"></slot>
...@@ -98,6 +98,7 @@ export default { ...@@ -98,6 +98,7 @@ export default {
username () { return Authentication.state.user.username }, username () { return Authentication.state.user.username },
userRole () { return Authentication.state.user.role }, userRole () { return Authentication.state.user.role },
gradySpeak () { return Authentication.gradySpeak }, gradySpeak () { return Authentication.gradySpeak },
isStudent () { return Authentication.isStudent },
...mapStateToComputedGetterSetter({ ...mapStateToComputedGetterSetter({
pathPrefix: 'UI', pathPrefix: 'UI',
items: [ items: [
......
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