fix: 🐛 Fix cpgg bad code bug -> doesNotFit can be undefined...
This commit is contained in:
parent
549b2830f9
commit
bacab7bb18
1 changed files with 2 additions and 2 deletions
|
@ -228,8 +228,8 @@
|
|||
</div>
|
||||
</div>
|
||||
<button type="submit" x-model="selectedProduct" name="product"
|
||||
:disabled="product.minimum_credits > user.credits || product.price > user.credits || product.doesNotFit"
|
||||
:class="product.minimum_credits > user.credits || product.price > user.credits ? 'disabled' : ''"
|
||||
:disabled="product.doesNotFit || product.minimum_credits > user.credits || product.price > user.credits"
|
||||
:class="product.doesNotFit || product.minimum_credits > user.credits || product.price > user.credits ? 'disabled' : ''"
|
||||
class="btn btn-primary btn-block mt-2" @click="setProduct(product.id)"
|
||||
x-text="product.doesNotFit ? '{{ __('Server cannot fit on this node') }}' : product.minimum_credits > user.credits || product.price > user.credits ? '{{ __('Not enough') }} {{ CREDITS_DISPLAY_NAME }}!' : '{{ __('Create server') }}'">
|
||||
</button>
|
||||
|
|
Loading…
Reference in a new issue