Skip to content

Commit

Permalink
Add section_title field to annotateSections() func
Browse files Browse the repository at this point in the history
  • Loading branch information
LianaHarris360 committed Oct 23, 2024
1 parent d6af7cb commit 6b19bea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion kolibri/core/assets/src/exams/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ export function annotateSections(sections, questions = []) {
if (!sections) {
return [
{
title: '',
section_title: '',
questions: questions,
startQuestionNumber: 0,
endQuestionNumber: questions.length - 1,
Expand Down
5 changes: 2 additions & 3 deletions kolibri/core/assets/src/views/AttemptLogList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
v-for="(section, index) in sections"
:id="`section-questions-${index}`"
:key="`section-questions-${index}`"
:title="displaySectionTitle(section, index) || sectionLabel$({ sectionNumber: index + 1 })"
:title="displaySectionTitle(section, index)"
@focus="expand(index)"
>
<template
Expand Down Expand Up @@ -174,7 +174,7 @@
AccordionItem,
},
setup(props, { emit }) {
const { questionsLabel$, quizSectionsLabel$, sectionLabel$ } = enhancedQuizManagementStrings;
const { questionsLabel$, quizSectionsLabel$ } = enhancedQuizManagementStrings;
const { questionNumberLabel$ } = coreStrings;
const { currentSectionIndex, sections, selectedQuestionNumber } = toRefs(props);
Expand Down Expand Up @@ -249,7 +249,6 @@
displaySectionTitle,
quizSectionsLabel$,
questionsLabel$,
sectionLabel$,
expand,
isExpanded,
toggle,
Expand Down

0 comments on commit 6b19bea

Please # to comment.