Merged in feature/VBV-460-user-profile-circle-read-only (pull request #162)
Bugfix VBV-460: show read-only circle view in cockpit Approved-by: Elia Bieri
This commit is contained in:
commit
4d9aa07b2d
|
|
@ -65,6 +65,7 @@ function setActiveClasses(isActive: boolean) {
|
||||||
:use-mobile-layout="false"
|
:use-mobile-layout="false"
|
||||||
:hide-buttons="true"
|
:hide-buttons="true"
|
||||||
:learning-path="learningPath"
|
:learning-path="learningPath"
|
||||||
|
:override-circle-url-base="`/course/${props.courseSlug}/cockpit/profile/${props.userId}`"
|
||||||
></LearningPathPathView>
|
></LearningPathPathView>
|
||||||
</div>
|
</div>
|
||||||
<ul class="mb-5 flex flex-row border-b-2">
|
<ul class="mb-5 flex flex-row border-b-2">
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,7 @@ const props = defineProps<{
|
||||||
isFirstCircle: boolean;
|
isFirstCircle: boolean;
|
||||||
isLastCircle: boolean;
|
isLastCircle: boolean;
|
||||||
isCurrentCircle: boolean;
|
isCurrentCircle: boolean;
|
||||||
|
overrideCircleUrl?: string;
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
const circleElement = ref<HTMLElement | null>(null);
|
const circleElement = ref<HTMLElement | null>(null);
|
||||||
|
|
@ -33,7 +34,7 @@ onMounted(() => {
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<router-link
|
<router-link
|
||||||
:to="props.circle.frontend_url"
|
:to="overrideCircleUrl ? overrideCircleUrl : props.circle.frontend_url"
|
||||||
:data-cy="`circle-${props.circle.title}`"
|
:data-cy="`circle-${props.circle.title}`"
|
||||||
class="flex flex-col items-center pb-6"
|
class="flex flex-col items-center pb-6"
|
||||||
>
|
>
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@ const props = defineProps<{
|
||||||
learningPath: LearningPath | undefined;
|
learningPath: LearningPath | undefined;
|
||||||
useMobileLayout: boolean;
|
useMobileLayout: boolean;
|
||||||
hideButtons?: boolean;
|
hideButtons?: boolean;
|
||||||
|
overrideCircleUrlBase?: string;
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
const scrollIncrement = 600;
|
const scrollIncrement = 600;
|
||||||
|
|
@ -72,6 +73,11 @@ const scrollLearnPathDiagram = (offset: number) => {
|
||||||
isLastCircle(topicIndex, circleIndex, topic.circles.length)
|
isLastCircle(topicIndex, circleIndex, topic.circles.length)
|
||||||
"
|
"
|
||||||
:is-current-circle="isCurrentCircle(circle) && !props.hideButtons"
|
:is-current-circle="isCurrentCircle(circle) && !props.hideButtons"
|
||||||
|
:override-circle-url="
|
||||||
|
props.overrideCircleUrlBase
|
||||||
|
? `${props.overrideCircleUrlBase}/${circle.slug}`
|
||||||
|
: undefined
|
||||||
|
"
|
||||||
></LearningPathCircleColumn>
|
></LearningPathCircleColumn>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue