6363 } "
6464 />
6565 </DrawerRouterOption >
66- <DrawerRouterOption to="/app/rollcall" name="Attendance" :fold =" ! active " >
67- <SvgQrCode
68- :class =" {
69- ' fill-selected-icon dark:fill-selected-icon' :
70- route .path .startsWith (' /app/rollcall' ),
71- } "
72- />
73- </DrawerRouterOption >
66+ <div v-if =" !isPedago" >
67+ <DrawerRouterOption to="/app/rollcall" name="Attendance" :fold =" ! active " >
68+ <SvgQrCode
69+ :class =" {
70+ ' fill-selected-icon dark:fill-selected-icon' :
71+ route .path .startsWith (' /app/rollcall' ),
72+ } "
73+ />
74+ </DrawerRouterOption >
75+ </div >
7476 <DrawerRouterOption to="/app/retrospective" name="Retrospective" :fold =" ! active " >
7577 <SvgNote
7678 :class =" {
118120</template >
119121
120122<script lang="ts" setup>
121- import { computed , ref } from ' vue' ;
123+ import { computed , onMounted , ref } from ' vue' ;
122124import { useRoute } from ' vue-router' ;
123125
124126import { useThemeStore } from ' @/store/modules/theme.store' ;
@@ -138,6 +140,7 @@ import SvgNote from '@/components/common/svg/Note.vue';
138140import SvgDark from ' @/components/common/svg/Dark.vue' ;
139141import SvgLight from ' @/components/common/svg/Light.vue' ;
140142import SvgLogout from ' @/components/common/svg/Logout.vue' ;
143+ import { http } from ' @/api/network/axios' ;
141144
142145const route = useRoute ();
143146const themeStore = useThemeStore ();
@@ -149,6 +152,19 @@ const isBlacklist = computed(() => blacklist.some((rgx) => rgx.test(route.path))
149152const theme = computed (() => themeStore .theme );
150153const active = ref (false );
151154const modalLogoutActive = ref (false );
155+ const isPedago = ref (false );
156+
157+ onMounted (() => {
158+ getIsPedago ();
159+ });
160+
161+ const getIsPedago = async () => {
162+ try {
163+ isPedago .value = await http .get (` /calls/is_pedagogue/ ` );
164+ } catch (error ) {
165+ console .log (error );
166+ }
167+ };
152168
153169const drawerAction = () => {
154170 active .value = ! active .value ;
0 commit comments