Skip to content

Commit

Permalink
exam page: include labels on dropdowns for sections & questions
Browse files Browse the repository at this point in the history
  • Loading branch information
nucleogenesis authored and rtibbles committed Jul 26, 2024
1 parent 209ac50 commit 9b04326
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion kolibri/plugins/learn/assets/src/views/ExamPage/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
v-if="sectionSelectOptions.length > 1"
:value="currentSectionOption"
:options="sectionSelectOptions"
:label="quizSectionsLabel$()"
@select="handleSectionOptionChange"
>
<template #display>
Expand Down Expand Up @@ -126,6 +127,7 @@
style="margin-top: 1em"
:value="currentQuestionOption"
:options="questionSelectOptions"
:label="questionsLabel$()"
@select="handleQuestionOptionChange"
>
<template #display>
Expand Down Expand Up @@ -311,7 +313,10 @@
import { mapState } from 'vuex';
import isEqual from 'lodash/isEqual';
import { displaySectionTitle } from 'kolibri-common/strings/enhancedQuizManagementStrings';
import {
displaySectionTitle,
enhancedQuizManagementStrings,
} from 'kolibri-common/strings/enhancedQuizManagementStrings';
import debounce from 'lodash/debounce';
import BottomAppBar from 'kolibri.coreVue.components.BottomAppBar';
import useKResponsiveWindow from 'kolibri-design-system/lib/composables/useKResponsiveWindow';
Expand Down Expand Up @@ -351,7 +356,10 @@
} = useProgressTracking();
const { windowBreakpoint, windowIsMedium, windowIsLarge, windowIsSmall } =
useKResponsiveWindow();
const { quizSectionsLabel$, questionsLabel$ } = enhancedQuizManagementStrings;
return {
questionsLabel$,
quizSectionsLabel$,
displaySectionTitle,
pastattempts,
time_spent,
Expand Down

0 comments on commit 9b04326

Please sign in to comment.