fix(frontend): Het startleerobject wordt getoond bij het openen van een leerpad vanuit my-content.
This commit is contained in:
		
							parent
							
								
									4d20e223e5
								
							
						
					
					
						commit
						778a823ac8
					
				
					 1 changed files with 10 additions and 1 deletions
				
			
		|  | @ -89,6 +89,15 @@ | ||||||
|                 props.selectedLearningPath.language !== parsedLearningPath.value.language), |                 props.selectedLearningPath.language !== parsedLearningPath.value.language), | ||||||
|     ); |     ); | ||||||
| 
 | 
 | ||||||
|  |     const selectedLearningPathLink = computed(() => { | ||||||
|  |         if (!props.selectedLearningPath) { | ||||||
|  |             return undefined; | ||||||
|  |         } | ||||||
|  |         const { hruid, language } = props.selectedLearningPath; | ||||||
|  |         const startNode = props.selectedLearningPath.nodes.find((it) => it.start_node); | ||||||
|  |         return `/learningPath/${hruid}/${language}/${startNode.learningobject_hruid}`; | ||||||
|  |     }); | ||||||
|  | 
 | ||||||
|     function getErrorMessage(): string | null { |     function getErrorMessage(): string | null { | ||||||
|         if (postError.value) { |         if (postError.value) { | ||||||
|             return t(extractErrorMessage(postError.value)); |             return t(extractErrorMessage(postError.value)); | ||||||
|  | @ -128,7 +137,7 @@ | ||||||
|                         variant="text" |                         variant="text" | ||||||
|                     /> |                     /> | ||||||
|                     <v-btn |                     <v-btn | ||||||
|                         :href="`/learningPath/${props.selectedLearningPath?.hruid}/${props.selectedLearningPath?.language}/start`" |                         :href="selectedLearningPathLink" | ||||||
|                         target="_blank" |                         target="_blank" | ||||||
|                         prepend-icon="mdi mdi-open-in-new" |                         prepend-icon="mdi mdi-open-in-new" | ||||||
|                         :disabled="!props.selectedLearningPath" |                         :disabled="!props.selectedLearningPath" | ||||||
|  |  | ||||||
		Reference in a new issue
	
	 Gerald Schmittinger
						Gerald Schmittinger