fix: don't show course count on batch details if there are no courses
This commit is contained in:
@@ -24,7 +24,10 @@
|
|||||||
>
|
>
|
||||||
{{ formatNumberIntoCurrency(batch.data.amount, batch.data.currency) }}
|
{{ formatNumberIntoCurrency(batch.data.amount, batch.data.currency) }}
|
||||||
</div>
|
</div>
|
||||||
<div class="flex items-center mb-3 text-ink-gray-7">
|
<div
|
||||||
|
v-if="batch.data.courses.length"
|
||||||
|
class="flex items-center mb-3 text-ink-gray-7"
|
||||||
|
>
|
||||||
<BookOpen class="h-4 w-4 stroke-1.5 mr-2" />
|
<BookOpen class="h-4 w-4 stroke-1.5 mr-2" />
|
||||||
<span> {{ batch.data.courses.length }} {{ __('Courses') }} </span>
|
<span> {{ batch.data.courses.length }} {{ __('Courses') }} </span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -14,13 +14,16 @@
|
|||||||
{{ batch.data.description }}
|
{{ batch.data.description }}
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="flex flex-col gap-2 lg:gap-0 lg:flex-row lg:items-center justify-between lg:w-1/2"
|
class="flex flex-col gap-2 lg:gap-0 lg:flex-row lg:items-center space-x-5 lg:w-1/2"
|
||||||
>
|
>
|
||||||
<div class="flex items-center text-ink-gray-7">
|
<div
|
||||||
|
v-if="batch.data?.courses?.length"
|
||||||
|
class="flex items-center text-ink-gray-7"
|
||||||
|
>
|
||||||
<BookOpen class="h-4 w-4 mr-2" />
|
<BookOpen class="h-4 w-4 mr-2" />
|
||||||
<span> {{ batch.data?.courses?.length }} {{ __('Courses') }} </span>
|
<span> {{ batch.data?.courses?.length }} {{ __('Courses') }} </span>
|
||||||
</div>
|
</div>
|
||||||
<span class="hidden lg:block" v-if="batch.data.courses"
|
<span v-if="batch.data?.courses?.length" class="hidden lg:block"
|
||||||
>·</span
|
>·</span
|
||||||
>
|
>
|
||||||
<DateRange
|
<DateRange
|
||||||
|
|||||||
Reference in New Issue
Block a user