Skip to content

Commit

Permalink
renaming modeQuiz Object variable
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanOXDi committed May 25, 2024
1 parent 4eb9e90 commit 3dd6c58
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"
@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 3dd6c58

Please sign in to comment.