From 4c23513a416e84050809da35ca24cfce096ae5c5 Mon Sep 17 00:00:00 2001 From: matias-portainer <104775949+matias-portainer@users.noreply.github.com> Date: Tue, 16 Aug 2022 09:57:55 -0300 Subject: [PATCH] fix(home): remove edge devices from homepage list EE-3919 (#7471) --- .../home/EnvironmentList/EnvironmentList.tsx | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/app/portainer/home/EnvironmentList/EnvironmentList.tsx b/app/portainer/home/EnvironmentList/EnvironmentList.tsx index cff491e96..abd48ca4c 100644 --- a/app/portainer/home/EnvironmentList/EnvironmentList.tsx +++ b/app/portainer/home/EnvironmentList/EnvironmentList.tsx @@ -130,7 +130,7 @@ export function EnvironmentList({ onClickItem, onRefresh }: Props) { status: statusFilter, tagIds: tagFilter?.length ? tagFilter : undefined, groupIds: groupFilter, - edgeDevice: getEdgeDeviceFilter(connectionTypes.map((p) => p.value)), + edgeDevice: false, tagsPartialMatch: true, agentVersions: agentVersions.map((a) => a.value), }; @@ -331,19 +331,6 @@ export function EnvironmentList({ onClickItem, onRefresh }: Props) { ); - function getEdgeDeviceFilter(connectionTypes: ConnectionType[]) { - // show both types of edge agent if both are selected or if no connection type is selected - if ( - connectionTypes.length === 0 || - (connectionTypes.includes(ConnectionType.EdgeAgent) && - connectionTypes.includes(ConnectionType.EdgeDevice)) - ) { - return undefined; - } - - return connectionTypes.includes(ConnectionType.EdgeDevice); - } - function getTypes( platformTypes: PlatformType[], connectionTypes: ConnectionType[] @@ -495,7 +482,6 @@ function getConnectionTypeOptions(platformTypes: Filter[]) { { value: ConnectionType.API, label: 'API' }, { value: ConnectionType.Agent, label: 'Agent' }, { value: ConnectionType.EdgeAgent, label: 'Edge Agent' }, - { value: ConnectionType.EdgeDevice, label: 'Edge Device' }, ]; if (platformTypes.length === 0) {