Update create.blade.php

This commit is contained in:
1day2die 2023-01-02 15:15:59 +01:00
parent 5053daedb5
commit 70677e3a3a

View file

@ -222,6 +222,7 @@
x-text="product.price + ' {{ CREDITS_DISPLAY_NAME }}'"></span>
</div>
</div>
<div x-data="{ buttonDisabled: false }">
<button type="submit" id="click-once" x-model="selectedProduct" name="product"
:disabled="product.minimum_credits > user.credits||product.doesNotFit == true"
:class="product.minimum_credits > user.credits ? 'disabled' : ''"
@ -229,6 +230,7 @@
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>
</div>
</div>
</div>