From ba144d09c05aee44c23323259daf76c5c2b0ef9e Mon Sep 17 00:00:00 2001 From: daverolo <107847185+daverolo@users.noreply.github.com> Date: Mon, 12 Aug 2024 10:36:36 +0200 Subject: [PATCH] FIX: missing ssv.network service on holesky edit node (#1987) --- .../components/drawer/DrawerFilter.vue | 22 +++++-------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/launcher/src/components/UI/edit-page/components/drawer/DrawerFilter.vue b/launcher/src/components/UI/edit-page/components/drawer/DrawerFilter.vue index e2faec5d2..e67b96349 100644 --- a/launcher/src/components/UI/edit-page/components/drawer/DrawerFilter.vue +++ b/launcher/src/components/UI/edit-page/components/drawer/DrawerFilter.vue @@ -5,9 +5,7 @@ class="relative w-full cursor-default rounded-md bg-gray-200 p-1 text-left shadow-md text-sm" @click="toggleDropdown" > - + {{ selectedFilter }} @@ -28,10 +26,7 @@ class="flex justify-center cursor-default select-none p-1 text-gray-900 hover:bg-gray-300" @click="selectFilter(filter.name)" > - + { case "mainnet": return true; case "holesky": + return true; case "sepolia": return service.service !== "SSVNetworkService"; case "gnosis": - return /(Lighthouse|Teku|Nethermind|Erigon|Grafana|Prometheus)/.test( - service.service - ); + return /(Lighthouse|Teku|Nethermind|Erigon|Grafana|Prometheus)/.test(service.service); default: return service.service !== "SSVNetworkService"; } @@ -109,9 +103,7 @@ const networkFilter = (service) => { const determineCurrentNetwork = () => { const selectedNetwork = setupStore.selectedSetup?.network; if (selectedNetwork) { - const foundNetwork = manageStore.networkList.find( - (network) => network.network === selectedNetwork - ); + const foundNetwork = manageStore.networkList.find((network) => network.network === selectedNetwork); currentNetwork.value = foundNetwork ? foundNetwork.network : null; } }; @@ -127,9 +119,7 @@ const filteredServices = computed(() => { const filterName = selectedFilter.value ?? "all"; return filterName === "all" ? networkArchFilteredServices.value - : networkArchFilteredServices.value.filter( - (service) => service.category === filterName - ); + : networkArchFilteredServices.value.filter((service) => service.category === filterName); }); // Watchers