From 19525f19dd66c6b0b779b26b942d65ecd94dd427 Mon Sep 17 00:00:00 2001 From: Jason Madigan Date: Tue, 22 Oct 2024 12:42:10 +0100 Subject: [PATCH] Overview: edit Gateway/HTTPRoutes links broken Signed-off-by: Jason Madigan --- src/components/DropdownWithKebab.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/DropdownWithKebab.tsx b/src/components/DropdownWithKebab.tsx index b20c13a..0370bbb 100644 --- a/src/components/DropdownWithKebab.tsx +++ b/src/components/DropdownWithKebab.tsx @@ -41,7 +41,12 @@ const DropdownWithKebab: React.FC = ({ obj }) => { const policyType = obj.kind.toLowerCase(); const onEditClick = () => { - if (obj.kind === 'AuthPolicy' || obj.kind === 'RateLimitPolicy') { + if ( + obj.kind === 'AuthPolicy' || + obj.kind === 'RateLimitPolicy' || + obj.kind === 'Gateway' || + obj.kind === 'HTTPRoute' + ) { history.push({ pathname: `/k8s/ns/${obj.metadata.namespace}/${obj.apiVersion.replace('/', '~')}~${ obj.kind