fix: geselecteerde leerobject wordt weer aangeduidt in discussions sidebar
This commit is contained in:
		
							parent
							
								
									f5bf11d812
								
							
						
					
					
						commit
						b66026382b
					
				
					 2 changed files with 8 additions and 2 deletions
				
			
		|  | @ -10,6 +10,10 @@ | ||||||
|     const { t, locale } = useI18n(); |     const { t, locale } = useI18n(); | ||||||
|     const route = useRoute(); |     const route = useRoute(); | ||||||
| 
 | 
 | ||||||
|  |     const props = defineProps<{ | ||||||
|  |             learningObjectHruid: string; | ||||||
|  |         }>(); | ||||||
|  | 
 | ||||||
|     const navigationDrawerShown = ref(true); |     const navigationDrawerShown = ref(true); | ||||||
|     const currentLocale = ref(locale.value); |     const currentLocale = ref(locale.value); | ||||||
|     const expanded = ref([route.params.hruid]); |     const expanded = ref([route.params.hruid]); | ||||||
|  | @ -42,7 +46,7 @@ | ||||||
|                     <DiscussionSideBarElement |                     <DiscussionSideBarElement | ||||||
|                         v-for="learningPath in learningPaths.data" |                         v-for="learningPath in learningPaths.data" | ||||||
|                         :path="learningPath" |                         :path="learningPath" | ||||||
|                         :activeObjectId="'' as string" |                         :activeObjectId="props.learningObjectHruid" | ||||||
|                         :key="learningPath.hruid" |                         :key="learningPath.hruid" | ||||||
|                     /> |                     /> | ||||||
|                 </using-query-result> |                 </using-query-result> | ||||||
|  |  | ||||||
|  | @ -75,7 +75,9 @@ const { t } = useI18n(); | ||||||
| </script> | </script> | ||||||
| 
 | 
 | ||||||
| <template> | <template> | ||||||
|     <DiscussionsSideBar></DiscussionsSideBar> |     <DiscussionsSideBar | ||||||
|  |         :learningObjectHruid="props.learningObjectHruid"> | ||||||
|  |     </DiscussionsSideBar> | ||||||
|     <div class="discussions-container"> |     <div class="discussions-container"> | ||||||
|         <QuestionBox |         <QuestionBox | ||||||
|             :hruid="props.hruid" |             :hruid="props.hruid" | ||||||
|  |  | ||||||
		Reference in a new issue
	
	 Timo De Meyst
						Timo De Meyst