fix: credits_display_name placerholder & removed old code

This commit is contained in:
IceToast 2021-11-27 14:02:38 +01:00
parent da57e37008
commit 0512f81b8b

View file

@ -145,20 +145,6 @@
</select> </select>
</div> </div>
<!-- <div class="form-group">
<label for="product">{{ __('Resources') }}</label>
<select name="product" required id="product" :disabled="!fetchedProducts"
x-model="selectedProduct" @change="updateSelectedObjects()" class="custom-select">
<option x-text="getProductInputText()" disabled selected hidden value="null"></option>
<template x-for="product in products" :key="product.id">
<option :disabled="product.minimum_credits > user.credits"
x-text="getProductOptionText(product)" :value="product.id">
</option>
</template>
</select>
</div> -->
</div> </div>
</div> </div>
@ -166,7 +152,6 @@
<div class="w-100"></div> <div class="w-100"></div>
<div class="col" x-show="selectedNode != null"> <div class="col" x-show="selectedNode != null">
<!-- <div class="row"><label for="product">{{ __('Resources') }}</label></div> -->
<div class="row justify-content-center"> <div class="row justify-content-center">
<template x-for="product in products" :key="product.id"> <template x-for="product in products" :key="product.id">
<div class="card col-xl-2 col-lg-3 col-md-4 col-sm-10 mr-2 ml-2 "> <div class="card col-xl-2 col-lg-3 col-md-4 col-sm-10 mr-2 ml-2 ">
@ -227,7 +212,8 @@
<span class="d-inline-block mr-4"> <span class="d-inline-block mr-4">
{{ __('Price') }}: {{ __('Price') }}:
</span> </span>
<span class="d-inline-block" x-text="product.price + ' Credits'"></span> <span class="d-inline-block"
x-text="product.price + ' {{ CREDITS_DISPLAY_NAME }}'"></span>
</div> </div>
</div> </div>
@ -235,7 +221,7 @@
:disabled="product.minimum_credits > user.credits" :disabled="product.minimum_credits > user.credits"
:class="product.minimum_credits > user.credits ? 'disabled' : ''" :class="product.minimum_credits > user.credits ? 'disabled' : ''"
class="btn btn-primary btn-block mt-2" @click="setProduct(product.id)" class="btn btn-primary btn-block mt-2" @click="setProduct(product.id)"
x-text=" product.minimum_credits > user.credits ? 'Not enough credits!' : 'Create server'"> x-text=" product.minimum_credits > user.credits ? 'Not enough {{ CREDITS_DISPLAY_NAME }}!' : 'Create server'">
</button> </button>
</div> </div>
</div> </div>