From c1c134f6335e35351a13593ca566504dabafdebd Mon Sep 17 00:00:00 2001 From: ashutosh16 <11219262+ashutosh16@users.noreply.github.com> Date: Thu, 8 Sep 2022 14:53:57 -0700 Subject: [PATCH] fix: hide terminal on the non-pod resource kind Signed-off-by: ashutosh16 <11219262+ashutosh16@users.noreply.github.com> --- .../components/resource-details/resource-details.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/app/applications/components/resource-details/resource-details.tsx b/ui/src/app/applications/components/resource-details/resource-details.tsx index 699a783c7a08b..eb94298ff9215 100644 --- a/ui/src/app/applications/components/resource-details/resource-details.tsx +++ b/ui/src/app/applications/components/resource-details/resource-details.tsx @@ -120,7 +120,7 @@ export const ResourceDetails = (props: ResourceDetailsProps) => { } ]); } - if (execEnabled && execAllowed) { + if (selectedNode.kind === 'Pod' && execEnabled && execAllowed) { tabs = tabs.concat([ { key: 'exec',