Merge pull request #877 from nikkothari22/fix-seats-badge

fix: show "Seats Left" instead of "Seat Left" if more than 1 seat is available
This commit is contained in:
Jannat Patel
2024-06-24 14:35:11 +05:30
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -8,7 +8,7 @@
theme="green"
class="self-start mb-2"
>
{{ batch.seats_left }} {{ __('Seat Left') }}
{{ batch.seats_left }} <span v-if="batch.seats_left > 1">{{ __('Seats Left') }}</span><span v-else-if="batch.seats_left == 1">{{ __('Seat Left') }}</span>
</Badge>
<Badge
v-else-if="batch.seat_count && batch.seats_left <= 0"

View File

@@ -5,7 +5,7 @@
theme="green"
class="self-start mb-2 float-right"
>
{{ seats_left }} {{ __('Seat Left') }}
{{ seats_left }} <span v-if="batch.seats_left > 1">{{ __('Seats Left') }}</span><span v-else-if="batch.seats_left == 1">{{ __('Seat Left') }}</span>
</Badge>
<Badge
v-else-if="batch.data.seat_count && seats_left <= 0"