Skip to content

Commit

Permalink
Merge pull request #12202 from AllanOXDi/fixs-quiz-file-download-size…
Browse files Browse the repository at this point in the history
…-not-showing

fixes quizzes not showing "File size for download" value properly
  • Loading branch information
nucleogenesis authored May 28, 2024
2 parents 16cf3c8 + 3dd6c58 commit 7181cfa
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,15 @@
:text="coachString('openQuizLabel')"
appearance="flat-button"
class="table-left-aligned-button"
@click="showOpenConfirmationModal = true; modalQuizId = tableRow.id"
@click="showOpenConfirmationModal = true; modalQuiz = tableRow"
/>
<!-- Close quiz button -->
<KButton
v-if="tableRow.active && !tableRow.archive"
:text="coachString('closeQuizLabel')"
appearance="flat-button"
class="table-left-aligned-button"
@click="showCloseConfirmationModal = true; modalQuizId = tableRow.id;"
@click="showCloseConfirmationModal = true; modalQuiz = tableRow;"
/>
<div
v-if="tableRow.archive"
Expand All @@ -116,19 +116,19 @@
:submitText="coreString('continueAction')"
:cancelText="coreString('cancelAction')"
@cancel="showOpenConfirmationModal = false"
@submit="handleOpenQuiz(modalQuizId)"
@submit="handleOpenQuiz(modalQuiz.id)"
>
<p>{{ coachString('openQuizModalDetail') }}</p>
<p>{{ coachString('lodQuizDetail') }}</p>
<p>{{ coachString('fileSizeToDownload', { size: modalQuizId.size_string }) }}</p>
<p>{{ coachString('fileSizeToDownload', { size: modalQuiz.size_string }) }}</p>
</KModal>
<KModal
v-if="showCloseConfirmationModal"
:title="coachString('closeQuizLabel')"
:submitText="coreString('continueAction')"
:cancelText="coreString('cancelAction')"
@cancel="showCloseConfirmationModal = false"
@submit="handleCloseQuiz(modalQuizId)"
@submit="handleCloseQuiz(modalQuiz.id)"
>
<div>{{ coachString('closeQuizModalDetail') }}</div>
</KModal>
Expand Down Expand Up @@ -167,7 +167,7 @@
filter: 'allQuizzes',
showOpenConfirmationModal: false,
showCloseConfirmationModal: false,
modalQuizId: null,
modalQuiz: null,
};
},
computed: {
Expand Down

0 comments on commit 7181cfa

Please sign in to comment.