diff --git a/client/src/components/learningPath/LearningPathDiagram.vue b/client/src/components/learningPath/LearningPathDiagram.vue index 643da115..1f8da7ba 100644 --- a/client/src/components/learningPath/LearningPathDiagram.vue +++ b/client/src/components/learningPath/LearningPathDiagram.vue @@ -12,6 +12,10 @@ export default { type: String, default: "horizontal", }, + postfix: { + type: String, + default: "", + }, learningPath: { required: true, type: Object, @@ -25,7 +29,7 @@ export default { }, computed: { svgId() { - return `learningpath-diagram-${this.learningPath.slug}-${this.diagramType}`; + return `learningpath-diagram-${this.learningPath.slug}-${this.diagramType}${this.postfix}`; }, viewBox() { return `0 0 ${this.width} ${this.height}`; diff --git a/client/src/components/learningPath/LearningPathDiagramSmall.vue b/client/src/components/learningPath/LearningPathDiagramSmall.vue index 96eb5455..a6c3c081 100644 --- a/client/src/components/learningPath/LearningPathDiagramSmall.vue +++ b/client/src/components/learningPath/LearningPathDiagramSmall.vue @@ -9,7 +9,7 @@ import { ref } from "vue"; log.debug("LearningPathDiagramSmall created"); const props = defineProps<{ - learningPathUrl: string; + courseSlug: string; }>(); const learningPathData = ref(undefined); @@ -17,11 +17,7 @@ const learningPathData = ref(undefined); const learningPathStore = useLearningPathStore(); learningPathStore - .loadLearningPath( - props.learningPathUrl.replace(/\/learn$/, "-lp").replace(/^\/course\//, ""), - false, - false - ) + .loadLearningPath(props.courseSlug + "-lp", undefined, false, false) .then((data) => { learningPathData.value = data; }); diff --git a/client/src/components/learningPath/LearningPathViewVertical.vue b/client/src/components/learningPath/LearningPathViewVertical.vue index 787c291c..b67b4535 100644 --- a/client/src/components/learningPath/LearningPathViewVertical.vue +++ b/client/src/components/learningPath/LearningPathViewVertical.vue @@ -1,31 +1,29 @@