Remove "wegleitung" when there are no points

This commit is contained in:
Daniel Egger 2024-05-28 15:52:28 +02:00
parent f78cdea3f2
commit f5733368d0
1 changed files with 21 additions and 20 deletions

View File

@ -74,7 +74,8 @@ const frontendUrl = computed(() => {
</h3>
</div>
<section v-if="userPointsEvaluatedAssignments > 0" class="flex items-center">
<section v-if="userPointsEvaluatedAssignments > 0">
<div class="flex items-center">
<div
class="py-4"
:class="{ 'heading-1': props.detailView, 'heading-2': !props.detailView }"
@ -82,11 +83,7 @@ const frontendUrl = computed(() => {
>
{{ $t("a.Note") }}: {{ userGrade }}
</div>
</section>
<section v-else class="py-2">
{{ $t("a.competenceCertificateNoUserPoints") }}
</section>
</div>
<div
class="text-gray-900"
:data-cy="`certificate-${competenceCertificate.slug}-grade-percent`"
@ -101,6 +98,10 @@ const frontendUrl = computed(() => {
{{ $t("a.Wegleitung üK") }}
</a>
</div>
</section>
<section v-else class="py-2">
{{ $t("a.competenceCertificateNoUserPoints") }}
</section>
<ItProgress :status-count="progressStatusCount" />
<div>