feat(frontend): Link naar leerinhoudbeheer enkel zichtbaar voor leerkrachten.
This commit is contained in:
		
							parent
							
								
									e4329d0378
								
							
						
					
					
						commit
						081ea80a70
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		|  | @ -5,6 +5,7 @@ | ||||||
|     import { AGE_TO_THEMES, THEMESITEMS } from "@/utils/constants.ts"; |     import { AGE_TO_THEMES, THEMESITEMS } from "@/utils/constants.ts"; | ||||||
|     import { useThemeQuery } from "@/queries/themes.ts"; |     import { useThemeQuery } from "@/queries/themes.ts"; | ||||||
|     import type { Theme } from "@/data-objects/theme.ts"; |     import type { Theme } from "@/data-objects/theme.ts"; | ||||||
|  | import authService from "@/services/auth/auth-service"; | ||||||
| 
 | 
 | ||||||
|     const props = defineProps({ |     const props = defineProps({ | ||||||
|         selectedTheme: { type: String, required: true }, |         selectedTheme: { type: String, required: true }, | ||||||
|  | @ -33,6 +34,8 @@ | ||||||
|             cards.value = themes; |             cards.value = themes; | ||||||
|         } |         } | ||||||
|     }); |     }); | ||||||
|  | 
 | ||||||
|  |     const isTeacher = computed(() => authService.authState.activeRole === "teacher"); | ||||||
| </script> | </script> | ||||||
| 
 | 
 | ||||||
| <template> | <template> | ||||||
|  | @ -91,6 +94,7 @@ | ||||||
|                 /> |                 /> | ||||||
|             </v-col> |             </v-col> | ||||||
|             <v-col |             <v-col | ||||||
|  |                 v-if="isTeacher" | ||||||
|                 cols="12" |                 cols="12" | ||||||
|                 sm="6" |                 sm="6" | ||||||
|                 md="4" |                 md="4" | ||||||
|  |  | ||||||
		Reference in a new issue
	
	 Gerald Schmittinger
						Gerald Schmittinger