From 567e31401dce4e1acd30c826fe75c7f9c752e5a5 Mon Sep 17 00:00:00 2001 From: Prospector <6166773+Prospector@users.noreply.github.com> Date: Mon, 8 Sep 2025 15:35:27 -0700 Subject: [PATCH] Hide germany when out of stock. Also, fixes wrapping issue with testing connection (#4356) --- .../components/billing/ServersPurchase1Region.vue | 15 ++++++++++++++- .../components/billing/ServersRegionButton.vue | 8 +++++--- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/packages/ui/src/components/billing/ServersPurchase1Region.vue b/packages/ui/src/components/billing/ServersPurchase1Region.vue index 2d1a0fb60..83cf750fe 100644 --- a/packages/ui/src/components/billing/ServersPurchase1Region.vue +++ b/packages/ui/src/components/billing/ServersPurchase1Region.vue @@ -50,6 +50,19 @@ const sortedRegions = computed(() => { }) }) +const visibleRegions = computed(() => { + if (!loading.value) { + return sortedRegions.value.filter((region) => { + // only show eu-lim if it has stock because we're not restocking it. + if (region.shortcode === 'eu-lim') { + return currentStock.value[region.shortcode] > 0 + } + return true + }) + } + return sortedRegions.value +}) + const selectedRam = ref(-1) const ramOptions = computed(() => { @@ -204,7 +217,7 @@ onMounted(() => {
(Out of stock) - + - +