Fix typecheck error
This commit is contained in:
parent
c5d4d678ea
commit
39e3d657d0
|
|
@ -6,13 +6,13 @@ import * as log from "loglevel";
|
|||
// @ts-ignore
|
||||
import colors from "@/colors.json";
|
||||
|
||||
import { Circle } from "@/services/circle";
|
||||
import { LearningPath } from "@/services/learningPath";
|
||||
import type { Circle } from "@/services/circle";
|
||||
import type { LearningPath } from "@/services/learningPath";
|
||||
import type { LearningSequence, Topic } from "@/types";
|
||||
import { computed, onMounted, reactive } from "vue";
|
||||
import { useRouter } from "vue-router";
|
||||
|
||||
type DiagramType = "horizontal" | "vertical" | "horizontalSmall";
|
||||
export type DiagramType = "horizontal" | "vertical" | "horizontalSmall";
|
||||
|
||||
export interface Props {
|
||||
diagramType?: DiagramType;
|
||||
|
|
|
|||
|
|
@ -2,6 +2,8 @@
|
|||
import LearningPathDiagram from "@/components/learningPath/LearningPathDiagram.vue";
|
||||
import ItPersonRow from "@/components/ui/ItPersonRow.vue";
|
||||
import ItProgress from "@/components/ui/ItProgress.vue";
|
||||
import type { LearningPath } from "@/services/learningPath";
|
||||
|
||||
import { useCockpitStore } from "@/stores/cockpit";
|
||||
import { useCompetenceStore } from "@/stores/competence";
|
||||
import { useLearningPathStore } from "@/stores/learningPath";
|
||||
|
|
@ -129,7 +131,7 @@ function setActiveCircle(index: number) {
|
|||
learningPathStore.learningPathForUser(
|
||||
props.courseSlug,
|
||||
csu.user_id
|
||||
)
|
||||
) as LearningPath
|
||||
"
|
||||
:postfix="`cockpit-${csu.user_id}`"
|
||||
diagram-type="horizontalSmall"
|
||||
|
|
|
|||
Loading…
Reference in New Issue