chore: use page suffix + smaller changes (pr feedback)
This commit is contained in:
parent
3625841d80
commit
0e5e311829
|
|
@ -1,6 +1,6 @@
|
||||||
2
|
2
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import AssignmentSubmissionProgress from "@/pages/cockpit/cockpitPage/AssignmentSubmissionProgress.vue";
|
import AssignmentSubmissionProgress from "@/components/cockpit/AssignmentSubmissionProgress.vue";
|
||||||
import type {
|
import type {
|
||||||
CourseSession,
|
CourseSession,
|
||||||
LearningContent,
|
LearningContent,
|
||||||
|
|
@ -10,7 +10,7 @@ import type {
|
||||||
import log from "loglevel";
|
import log from "loglevel";
|
||||||
import { computed } from "vue";
|
import { computed } from "vue";
|
||||||
import { useTranslation } from "i18next-vue";
|
import { useTranslation } from "i18next-vue";
|
||||||
import FeedbackSubmissionProgress from "@/pages/cockpit/cockpitPage/FeedbackSubmissionProgress.vue";
|
import FeedbackSubmissionProgress from "@/components/cockpit/mentor/FeedbackSubmissionProgress.vue";
|
||||||
import { learningContentTypeData } from "@/utils/typeMaps";
|
import { learningContentTypeData } from "@/utils/typeMaps";
|
||||||
import {
|
import {
|
||||||
useCourseDataWithCompletion,
|
useCourseDataWithCompletion,
|
||||||
|
|
@ -11,7 +11,7 @@ import { useRouteQuery } from "@vueuse/router";
|
||||||
import { computed, onUnmounted } from "vue";
|
import { computed, onUnmounted } from "vue";
|
||||||
import { getPreviousRoute } from "@/router/history";
|
import { getPreviousRoute } from "@/router/history";
|
||||||
import { getCompetenceNaviUrl } from "@/utils/utils";
|
import { getCompetenceNaviUrl } from "@/utils/utils";
|
||||||
import SelfEvaluationSubmit from "@/pages/learningPath/selfEvaluationPage/SelfEvaluationRequestFeedback.vue";
|
import SelfEvaluationRequestFeedbackPage from "@/pages/learningPath/selfEvaluationPage/SelfEvaluationRequestFeedbackPage.vue";
|
||||||
|
|
||||||
log.debug("LearningContent.vue setup");
|
log.debug("LearningContent.vue setup");
|
||||||
|
|
||||||
|
|
@ -42,10 +42,12 @@ const learningUnitHasFeedbackPage = computed(
|
||||||
|
|
||||||
const currentQuestion = computed(() => questions.value[questionIndex.value]);
|
const currentQuestion = computed(() => questions.value[questionIndex.value]);
|
||||||
const showPreviousButton = computed(() => questionIndex.value != 0);
|
const showPreviousButton = computed(() => questionIndex.value != 0);
|
||||||
|
|
||||||
const showNextButton = computed(
|
const showNextButton = computed(
|
||||||
() => questionIndex.value + 1 < numPages.value && numPages.value > 1
|
() => questionIndex.value + 1 < numPages.value && numPages.value > 1
|
||||||
);
|
);
|
||||||
const showExitButton = computed(
|
|
||||||
|
const isLastStep = computed(
|
||||||
() => questions.value?.length === 1 || numPages.value == questionIndex.value + 1
|
() => questions.value?.length === 1 || numPages.value == questionIndex.value + 1
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
@ -99,7 +101,7 @@ onUnmounted(() => {
|
||||||
icon="it-icon-lc-learning-module"
|
icon="it-icon-lc-learning-module"
|
||||||
:steps-count="numPages"
|
:steps-count="numPages"
|
||||||
:show-next-button="showNextButton"
|
:show-next-button="showNextButton"
|
||||||
:show-exit-button="showExitButton"
|
:show-exit-button="isLastStep"
|
||||||
:show-start-button="false"
|
:show-start-button="false"
|
||||||
:show-previous-button="showPreviousButton"
|
:show-previous-button="showPreviousButton"
|
||||||
:base-url="props.learningUnit.evaluate_url"
|
:base-url="props.learningUnit.evaluate_url"
|
||||||
|
|
@ -160,8 +162,8 @@ onUnmounted(() => {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<SelfEvaluationSubmit
|
<SelfEvaluationRequestFeedbackPage
|
||||||
v-else
|
v-else-if="isLastStep && learningUnit.feedback_user == 'MENTOR_FEEDBACK'"
|
||||||
:learning-unit="props.learningUnit"
|
:learning-unit="props.learningUnit"
|
||||||
:criteria="questions"
|
:criteria="questions"
|
||||||
/>
|
/>
|
||||||
|
|
@ -11,7 +11,7 @@ import type {
|
||||||
} from "@/types";
|
} from "@/types";
|
||||||
import log from "loglevel";
|
import log from "loglevel";
|
||||||
import { computed, onMounted, reactive } from "vue";
|
import { computed, onMounted, reactive } from "vue";
|
||||||
import AssignmentSubmissionProgress from "@/pages/cockpit/cockpitPage/AssignmentSubmissionProgress.vue";
|
import AssignmentSubmissionProgress from "@/components/cockpit/AssignmentSubmissionProgress.vue";
|
||||||
import { useCourseSessionDetailQuery } from "@/composables";
|
import { useCourseSessionDetailQuery } from "@/composables";
|
||||||
import { formatDueDate } from "../../../components/dueDates/dueDatesUtils";
|
import { formatDueDate } from "../../../components/dueDates/dueDatesUtils";
|
||||||
import { stringifyParse } from "@/utils/utils";
|
import { stringifyParse } from "@/utils/utils";
|
||||||
|
|
|
||||||
|
|
@ -3,12 +3,12 @@ import LearningPathDiagram from "@/components/learningPath/LearningPathDiagram.v
|
||||||
import ItPersonRow from "@/components/ui/ItPersonRow.vue";
|
import ItPersonRow from "@/components/ui/ItPersonRow.vue";
|
||||||
|
|
||||||
import { useCourseSessionDetailQuery, useCurrentCourseSession } from "@/composables";
|
import { useCourseSessionDetailQuery, useCurrentCourseSession } from "@/composables";
|
||||||
import SubmissionsOverview from "@/pages/cockpit/cockpitPage/SubmissionsOverview.vue";
|
import SubmissionsOverview from "@/components/cockpit/SubmissionsOverview.vue";
|
||||||
import { useExpertCockpitStore } from "@/stores/expertCockpit";
|
import { useExpertCockpitStore } from "@/stores/expertCockpit";
|
||||||
import log from "loglevel";
|
import log from "loglevel";
|
||||||
import CockpitDates from "@/pages/cockpit/cockpitPage/CockpitDates.vue";
|
import CockpitDates from "@/components/cockpit/CockpitDates.vue";
|
||||||
import ItDropdownSelect from "@/components/ui/ItDropdownSelect.vue";
|
import ItDropdownSelect from "@/components/ui/ItDropdownSelect.vue";
|
||||||
import UserStatusCount from "@/pages/cockpit/cockpitPage/UserStatusCount.vue";
|
import UserStatusCount from "@/components/cockpit/UserStatusCount.vue";
|
||||||
import { useExpertCockpitPageData } from "@/pages/cockpit/cockpitPage/composables";
|
import { useExpertCockpitPageData } from "@/pages/cockpit/cockpitPage/composables";
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@ import {
|
||||||
import { useRouteQuery } from "@vueuse/router";
|
import { useRouteQuery } from "@vueuse/router";
|
||||||
import FeedbackProviderRankCriteria from "@/components/selfEvaluationFeedback/FeedbackProviderRankCriteria.vue";
|
import FeedbackProviderRankCriteria from "@/components/selfEvaluationFeedback/FeedbackProviderRankCriteria.vue";
|
||||||
import FeedbackProviderReleaseOverview from "@/components/selfEvaluationFeedback/FeedbackProviderReleaseOverview.vue";
|
import FeedbackProviderReleaseOverview from "@/components/selfEvaluationFeedback/FeedbackProviderReleaseOverview.vue";
|
||||||
|
import log from "loglevel";
|
||||||
|
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
|
|
@ -33,7 +34,7 @@ watch(
|
||||||
() => feedback.value,
|
() => feedback.value,
|
||||||
() => {
|
() => {
|
||||||
if (feedback.value && feedback.value.feedback_submitted) {
|
if (feedback.value && feedback.value.feedback_submitted) {
|
||||||
console.info("Feedback submitted, redirecting to overview page!");
|
log.info("Feedback submitted, redirecting to overview page!");
|
||||||
router.push({
|
router.push({
|
||||||
name: "mentorSelfEvaluationFeedback",
|
name: "mentorSelfEvaluationFeedback",
|
||||||
params: {
|
params: {
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import * as log from "loglevel";
|
import * as log from "loglevel";
|
||||||
|
|
||||||
import SelfEvaluation from "@/pages/learningPath/selfEvaluationPage/SelfEvaluation.vue";
|
import SelfEvaluation from "@/components/learningPath/SelfEvaluation.vue";
|
||||||
import { computed } from "vue";
|
import { computed } from "vue";
|
||||||
import { useCourseDataWithCompletion } from "@/composables";
|
import { useCourseDataWithCompletion } from "@/composables";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -180,7 +180,7 @@ const router = createRouter({
|
||||||
{
|
{
|
||||||
path: "",
|
path: "",
|
||||||
component: () =>
|
component: () =>
|
||||||
import("@/pages/cockpit/cockpitPage/mentor/MentorOverview.vue"),
|
import("@/pages/cockpit/cockpitPage/mentor/MentorOverviewPage.vue"),
|
||||||
name: "mentorCockpitOverview",
|
name: "mentorCockpitOverview",
|
||||||
meta: {
|
meta: {
|
||||||
cockpitType: "mentor",
|
cockpitType: "mentor",
|
||||||
|
|
@ -189,7 +189,7 @@ const router = createRouter({
|
||||||
{
|
{
|
||||||
path: "participants",
|
path: "participants",
|
||||||
component: () =>
|
component: () =>
|
||||||
import("@/pages/cockpit/cockpitPage/mentor/MentorParticipants.vue"),
|
import("@/pages/cockpit/cockpitPage/mentor/MentorParticipantsPage.vue"),
|
||||||
name: "mentorCockpitParticipants",
|
name: "mentorCockpitParticipants",
|
||||||
meta: {
|
meta: {
|
||||||
cockpitType: "mentor",
|
cockpitType: "mentor",
|
||||||
|
|
@ -198,7 +198,9 @@ const router = createRouter({
|
||||||
{
|
{
|
||||||
path: "self-evaluation-feedback/:learningUnitId",
|
path: "self-evaluation-feedback/:learningUnitId",
|
||||||
component: () =>
|
component: () =>
|
||||||
import("@/pages/cockpit/cockpitPage/mentor/SelfEvaluationFeedback.vue"),
|
import(
|
||||||
|
"@/pages/cockpit/cockpitPage/mentor/SelfEvaluationFeedbackPage.vue"
|
||||||
|
),
|
||||||
name: "mentorSelfEvaluationFeedback",
|
name: "mentorSelfEvaluationFeedback",
|
||||||
meta: {
|
meta: {
|
||||||
cockpitType: "mentor",
|
cockpitType: "mentor",
|
||||||
|
|
@ -217,7 +219,7 @@ const router = createRouter({
|
||||||
path: "praxis-assignments/:praxisAssignmentId",
|
path: "praxis-assignments/:praxisAssignmentId",
|
||||||
component: () =>
|
component: () =>
|
||||||
import(
|
import(
|
||||||
"@/pages/cockpit/cockpitPage/mentor/MentorPraxisAssignment.vue"
|
"@/pages/cockpit/cockpitPage/mentor/MentorPraxisAssignmentPage.vue"
|
||||||
),
|
),
|
||||||
name: "mentorCockpitPraxisAssignments",
|
name: "mentorCockpitPraxisAssignments",
|
||||||
meta: {
|
meta: {
|
||||||
|
|
@ -229,7 +231,7 @@ const router = createRouter({
|
||||||
path: "self-evaluation-feedback-assignments/:learningUnitId",
|
path: "self-evaluation-feedback-assignments/:learningUnitId",
|
||||||
component: () =>
|
component: () =>
|
||||||
import(
|
import(
|
||||||
"@/pages/cockpit/cockpitPage/mentor/MentorSelfEvaluationFeedbackAssignment.vue"
|
"@/pages/cockpit/cockpitPage/mentor/MentorSelfEvaluationFeedbackAssignmentPage.vue"
|
||||||
),
|
),
|
||||||
name: "mentorCockpitSelfEvaluationFeedbackAssignments",
|
name: "mentorCockpitSelfEvaluationFeedbackAssignments",
|
||||||
meta: {
|
meta: {
|
||||||
|
|
|
||||||
|
|
@ -13,9 +13,9 @@ from vbv_lernwelt.core.constants import (
|
||||||
ADMIN_USER_ID,
|
ADMIN_USER_ID,
|
||||||
TEST_MENTOR1_USER_ID,
|
TEST_MENTOR1_USER_ID,
|
||||||
TEST_STUDENT1_USER_ID,
|
TEST_STUDENT1_USER_ID,
|
||||||
|
TEST_STUDENT1_VV_USER_ID,
|
||||||
TEST_STUDENT2_USER_ID,
|
TEST_STUDENT2_USER_ID,
|
||||||
TEST_STUDENT3_USER_ID,
|
TEST_STUDENT3_USER_ID,
|
||||||
TEST_STUDENT1_VV_USER_ID,
|
|
||||||
TEST_SUPERVISOR1_USER_ID,
|
TEST_SUPERVISOR1_USER_ID,
|
||||||
TEST_TRAINER1_USER_ID,
|
TEST_TRAINER1_USER_ID,
|
||||||
TEST_TRAINER2_USER_ID,
|
TEST_TRAINER2_USER_ID,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue