1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00

Hide quantity if max_seats_limit = 1

This commit is contained in:
Benjamin Beganović 2021-03-22 13:32:29 +01:00
parent 546619a498
commit 8839bfabd3
2 changed files with 2 additions and 3 deletions

View File

@ -309,8 +309,7 @@ class BillingPortalPurchase extends Component
return $this->quantity;
}
// TODO: Dave review.
if ($this->quantity >= $this->billing_subscription->max_seats_limit) {
if ($this->quantity >= $this->billing_subscription->max_seats_limit && $option == 'increment') {
return $this->quantity;
}

View File

@ -20,7 +20,7 @@
@endif
</div>
@if($billing_subscription->per_seat_enabled)
@if($billing_subscription->per_seat_enabled && $billing_subscription->max_seats_limit > 1)
<div class="flex mt-4 space-x-4 items-center">
<span class="text-sm">{{ ctrans('texts.qty') }}</span>
<button wire:click="updateQuantity('decrement')" class="bg-gray-100 border rounded p-1">