Skip to content
Snippets Groups Projects
Commit 0da501a8 authored by Jens Christian Aanestad's avatar Jens Christian Aanestad
Browse files

refactor/Added v-if condition for displaying admin in navbar

parent 4ce33258
No related branches found
No related tags found
1 merge request!105refactor/Added v-if condition for displaying admin in navbar
Pipeline #285355 passed with warnings
......@@ -119,7 +119,7 @@
<img src="@/assets/icons/feedback.svg">Tilbakemelding
</router-link>
</li>
<li>
<li v-if="useUserInfoStore().role === 'ADMIN'">
<router-link data-cy="admin"
class="dropdown-item dropdown-username-link"
:to="toSetting()"
......
......@@ -5,7 +5,6 @@ import { ref } from 'vue'
import BaseInput from '@/components/BaseComponents/Input/BaseInput.vue'
import { useConfigurationStore } from '@/stores/ConfigurationStore'
import { AccountControllerService } from '@/api'
import handleUnknownError from '@/components/Exceptions/unkownErrorHandler'
const router = useRouter();
......
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