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:
parent
546619a498
commit
8839bfabd3
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user