Skip to content

Commit 6b19bea

Browse files
Add section_title field to annotateSections() func
1 parent d6af7cb commit 6b19bea

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Diff for: kolibri/core/assets/src/exams/utils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ export function annotateSections(sections, questions = []) {
263263
if (!sections) {
264264
return [
265265
{
266-
title: '',
266+
section_title: '',
267267
questions: questions,
268268
startQuestionNumber: 0,
269269
endQuestionNumber: questions.length - 1,

Diff for: kolibri/core/assets/src/views/AttemptLogList.vue

+2-3
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
v-for="(section, index) in sections"
6666
:id="`section-questions-${index}`"
6767
:key="`section-questions-${index}`"
68-
:title="displaySectionTitle(section, index) || sectionLabel$({ sectionNumber: index + 1 })"
68+
:title="displaySectionTitle(section, index)"
6969
@focus="expand(index)"
7070
>
7171
<template
@@ -174,7 +174,7 @@
174174
AccordionItem,
175175
},
176176
setup(props, { emit }) {
177-
const { questionsLabel$, quizSectionsLabel$, sectionLabel$ } = enhancedQuizManagementStrings;
177+
const { questionsLabel$, quizSectionsLabel$ } = enhancedQuizManagementStrings;
178178
const { questionNumberLabel$ } = coreStrings;
179179
const { currentSectionIndex, sections, selectedQuestionNumber } = toRefs(props);
180180
@@ -249,7 +249,6 @@
249249
displaySectionTitle,
250250
quizSectionsLabel$,
251251
questionsLabel$,
252-
sectionLabel$,
253252
expand,
254253
isExpanded,
255254
toggle,

0 commit comments

Comments
 (0)