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