revert
This commit is contained in:
parent
70677e3a3a
commit
f8ab81e27d
1 changed files with 1 additions and 2 deletions
|
@ -223,11 +223,10 @@
|
|||
</div>
|
||||
</div>
|
||||
<div x-data="{ buttonDisabled: false }">
|
||||
<button type="submit" id="click-once" x-model="selectedProduct" name="product"
|
||||
<button type="submit" x-model="selectedProduct" name="product"
|
||||
:disabled="product.minimum_credits > user.credits||product.doesNotFit == true"
|
||||
:class="product.minimum_credits > user.credits ? 'disabled' : ''"
|
||||
class="btn btn-primary btn-block mt-2" @click="setProduct(product.id)"
|
||||
x-on:click="buttonDisabled = true" x-bind:disabled="buttonDisabled"
|
||||
x-text=" product.doesNotFit == true? '{{ __('Server can´t fit on this node') }}' : (product.minimum_credits > user.credits ? '{{ __('Not enough') }} {{ CREDITS_DISPLAY_NAME }}!' : '{{ __('Create server') }}')">
|
||||
</button>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Reference in a new issue