From 4ff1a1097de5207c9a119d72ecc46815ae551ab8 Mon Sep 17 00:00:00 2001 From: Daniel Egger Date: Wed, 7 Dec 2022 13:44:41 +0100 Subject: [PATCH] Embed LearningPath diagram on person list of cockpit --- .../learningPath/LearningPathDiagram.vue | 4 ++- .../learningPath/LearningPathDiagramSmall.vue | 1 + client/src/components/ui/ItPersonRow.vue | 14 ++++---- client/src/pages/cockpit/CockpitIndexPage.vue | 35 +++++++++++++++---- .../pages/cockpit/CockpitUserProfilePage.vue | 7 +--- client/src/stores/learningPath.ts | 13 ++++++- 6 files changed, 52 insertions(+), 22 deletions(-) diff --git a/client/src/components/learningPath/LearningPathDiagram.vue b/client/src/components/learningPath/LearningPathDiagram.vue index c3520900..911311c0 100644 --- a/client/src/components/learningPath/LearningPathDiagram.vue +++ b/client/src/components/learningPath/LearningPathDiagram.vue @@ -5,6 +5,7 @@ import * as log from "loglevel"; // @ts-ignore import colors from "@/colors.json"; + import { Circle } from "@/services/circle"; import { LearningPath } from "@/services/learningPath"; import type { LearningSequence, Topic } from "@/types"; @@ -37,7 +38,8 @@ const viewBox = computed(() => { const vueRouter = useRouter(); onMounted(async () => { - log.debug("CircleDiagram mounted"); + log.debug("LearningPathDiagram mounted"); + console.log(props.learningPath); render(); }); diff --git a/client/src/components/learningPath/LearningPathDiagramSmall.vue b/client/src/components/learningPath/LearningPathDiagramSmall.vue index a6c3c081..d1b3d7d9 100644 --- a/client/src/components/learningPath/LearningPathDiagramSmall.vue +++ b/client/src/components/learningPath/LearningPathDiagramSmall.vue @@ -29,4 +29,5 @@ learningPathStore diagram-type="horizontalSmall" > + diff --git a/client/src/components/ui/ItPersonRow.vue b/client/src/components/ui/ItPersonRow.vue index 5ab36d42..6d681d9c 100644 --- a/client/src/components/ui/ItPersonRow.vue +++ b/client/src/components/ui/ItPersonRow.vue @@ -6,17 +6,15 @@ const props = defineProps<{