style: 🚚 Renamed divided cpu by 100 and renamed unit to vCores -> more realistic naming

This commit is contained in:
IceToast 2021-12-22 20:34:27 +01:00
parent a571b5a59d
commit e4aabaec78

View file

@ -163,7 +163,8 @@
<li class="d-flex justify-content-between">
<span class="d-inline-block"><i class="fas fa-microchip"></i>
{{ __('CPU') }}</span>
<span class=" d-inline-block" x-text="product.cpu + ' %'"></span>
<span class=" d-inline-block"
x-text="product.cpu + ' {{ __('vCores') }}'"></span>
</li>
<li class="d-flex justify-content-between">
<span class="d-inline-block"><i class="fas fa-memory"></i>
@ -349,6 +350,11 @@
// TODO: Sortable by user chosen property (cpu, ram, disk...)
this.products = response.data.sort((p1, p2) => p1.price > p2.price && 1 || -1)
//divide cpu by 100 for each product
this.products.forEach(product => {
product.cpu = product.cpu / 100;
})
this.loading = false;
this.updateSelectedObjects()