fix: hide timer instructions if duration is not set
This commit is contained in:
@@ -1,21 +1,21 @@
|
|||||||
<template>
|
<template>
|
||||||
<div v-if="quiz.data">
|
<div v-if="quiz.data">
|
||||||
<div
|
<div
|
||||||
class="bg-blue-100 space-y-2 py-2 px-2 rounded-md text-sm text-blue-800"
|
class="bg-blue-100 space-y-1 py-2 px-2 rounded-md text-sm text-blue-800"
|
||||||
>
|
>
|
||||||
<div class="leading-5">
|
<div class="leading-5">
|
||||||
{{
|
{{
|
||||||
__('This quiz consists of {0} questions.').format(questions.length)
|
__('This quiz consists of {0} questions.').format(questions.length)
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
<div class="leading-5">
|
<div v-if="quiz.data?.duration" class="leading-5">
|
||||||
{{
|
{{
|
||||||
__(
|
__(
|
||||||
'Please ensure that you complete all the questions in {0} minutes.'
|
'Please ensure that you complete all the questions in {0} minutes.'
|
||||||
).format(quiz.data.duration)
|
).format(quiz.data.duration)
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
<div class="leading-5">
|
<div v-if="quiz.data?.duration" class="leading-5">
|
||||||
{{
|
{{
|
||||||
__(
|
__(
|
||||||
'If you fail to do so, the quiz will be automatically submitted when the timer ends.'
|
'If you fail to do so, the quiz will be automatically submitted when the timer ends.'
|
||||||
|
|||||||
Reference in New Issue
Block a user