commit
93a5cba262
|
|
@ -4,6 +4,7 @@ import LearningPathScrollButton from "@/pages/learningPath/learningPathPage/Lear
|
||||||
import { useScroll } from "@vueuse/core";
|
import { useScroll } from "@vueuse/core";
|
||||||
import { ref } from "vue";
|
import { ref } from "vue";
|
||||||
import type { LearningContentWithCompletion, LearningPathType } from "@/types";
|
import type { LearningContentWithCompletion, LearningPathType } from "@/types";
|
||||||
|
import LoadingSpinner from "@/components/ui/LoadingSpinner.vue";
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
learningPath: LearningPathType | undefined;
|
learningPath: LearningPathType | undefined;
|
||||||
|
|
@ -35,7 +36,10 @@ const scrollLearnPathDiagram = (offset: number) => {
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="relative flex flex-row items-center">
|
<div v-if="!props.learningPath" class="m-8 flex justify-center">
|
||||||
|
<LoadingSpinner />
|
||||||
|
</div>
|
||||||
|
<div v-else class="relative flex flex-row items-center">
|
||||||
<LearningPathScrollButton
|
<LearningPathScrollButton
|
||||||
v-show="!arrivedState.left"
|
v-show="!arrivedState.left"
|
||||||
direction="left"
|
direction="left"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue