|
@@ -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>
|