Fix alternate tag in detail view
Some checks are pending
CI / Lint & Format (push) Waiting to run
CI / Build (push) Waiting to run
CI / Tests (${{ matrix.browser }}) (chromium) (push) Waiting to run
CI / Tests (${{ matrix.browser }}) (firefox) (push) Waiting to run

This commit is contained in:
David 2026-07-03 16:41:27 +02:00
parent ecd78738a3
commit 8a96f28246

View file

@ -128,11 +128,11 @@ async function onExport() {
<i class="bi bi-arrow-left-right"></i> {{ $t('exercises.asymmetricLabel') }} <i class="bi bi-arrow-left-right"></i> {{ $t('exercises.asymmetricLabel') }}
</span> </span>
<span <span
v-if="exercise.asymmetric" v-if="exercise.asymmetric && exercise.alternate"
class="badge badge-info" class="badge badge-info"
data-testid="exercise-detail-alternate" data-testid="exercise-detail-alternate"
> >
{{ exercise.alternate ? $t('exercises.alternateLabel') : '' }} {{ $t('exercises.alternateLabel') }}
</span> </span>
</div> </div>