Working example with rerendering of LearningPathDiagram

This commit is contained in:
Daniel Egger 2022-11-09 21:02:38 +01:00
parent 4111e26828
commit 05e6906878
3 changed files with 2 additions and 4 deletions

View File

@ -46,8 +46,6 @@ export default {
}
if (this.learningPath) {
console.log("#$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$#");
console.log(this.learningPath);
const internalCircles = [];
this.learningPath.circles.forEach((circle) => {
const pieWeights = new Array(

View File

@ -25,7 +25,7 @@ const emits = defineEmits(["closemodal"]);
<LearningPathDiagram
v-if="learningPathStore.learningPath"
class="w-full"
identifier="verticalVisualization"
:identifier="`verticalVisualization-${learningPathStore.learningPath.slug}`"
:vertical="true"
></LearningPathDiagram>
</div>

View File

@ -69,7 +69,7 @@ const createContinueUrl = (learningPath: LearningPath): [string, boolean] => {
</div>
<LearningPathDiagram
class="mx-auto max-w-[1920px] max-h-[380px] w-full px-4"
identifier="mainVisualization"
:identifier="`mainVisualization-${learningPathStore.learningPath.slug}`"
:vertical="false"
></LearningPathDiagram>
</div>