Skip to content

Commit

Permalink
Merge pull request #132 from Kuadrant/gateway-httproute-edit-links
Browse files Browse the repository at this point in the history
Overview: edit Gateway/HTTPRoutes links broken
  • Loading branch information
openshift-merge-bot[bot] authored Oct 25, 2024
2 parents f6d40e1 + 19525f1 commit e8dc5a2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/DropdownWithKebab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,12 @@ const DropdownWithKebab: React.FC<DropdownWithKebabProps> = ({ 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
Expand Down

0 comments on commit e8dc5a2

Please sign in to comment.