From e4aabaec78c2cc7bda37b6495f577e37f5e973db Mon Sep 17 00:00:00 2001 From: IceToast Date: Wed, 22 Dec 2021 20:34:27 +0100 Subject: [PATCH] =?UTF-8?q?style:=20=F0=9F=9A=9A=20Renamed=20divided=20cpu?= =?UTF-8?q?=20by=20100=20and=20renamed=20unit=20to=20vCores=20->=20more=20?= =?UTF-8?q?realistic=20naming?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/views/servers/create.blade.php | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/resources/views/servers/create.blade.php b/resources/views/servers/create.blade.php index 72029195..bd83857d 100644 --- a/resources/views/servers/create.blade.php +++ b/resources/views/servers/create.blade.php @@ -6,14 +6,14 @@
-

{{__('Servers')}}

+

{{ __('Servers') }}

@@ -163,7 +163,8 @@
  • {{ __('CPU') }} - +
  • @@ -347,7 +348,12 @@ this.fetchedProducts = true; // TODO: Sortable by user chosen property (cpu, ram, disk...) - this.products = response.data.sort((p1, p2) => p1.price > p2.price && 1 || -1 ) + 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;