Skip to content
Permalink
Browse files Browse the repository at this point in the history
console: fix event triggers headers and import OAS modify button redi…
…rect (hotfix 2.20)

PR-URL: hasura/graphql-engine-mono#8220
Co-authored-by: Varun Choudhary <68095256+Varun-Choudhary@users.noreply.github.com>
GitOrigin-RevId: b273a95ae7a87ba5e967c1a59f2d302c371f4492
  • Loading branch information
2 people authored and hasura-bot committed Mar 8, 2023
1 parent 3579d4e commit dda5454
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
Expand Up @@ -8,6 +8,7 @@ import LeftSubSidebar from '../../../Common/Layout/LeftSubSidebar/LeftSubSidebar
import styles from '../../../Common/Layout/LeftSubSidebar/LeftSubSidebar.module.scss';
import { isProConsole } from '../../../../utils';
import { Badge } from '../../../../new-components/Badge';
import globals from '../../../../Globals';

const LeftSidebar = ({
appPrefix,
Expand Down Expand Up @@ -121,7 +122,9 @@ const LeftSidebar = ({
<div
className="py-1 "
onClick={() => {
browserHistory.push(`${appPrefix}/manage/add`);
browserHistory.push(
`${globals.urlPrefix}${appPrefix}/manage/add`
);
}}
>
<FaEdit className="relative -top-[1px]" /> New Action
Expand All @@ -131,7 +134,9 @@ const LeftSidebar = ({
<div
className="py-1 "
onClick={() => {
browserHistory.push(`${appPrefix}/manage/add-oas`);
browserHistory.push(
`${globals.urlPrefix}${appPrefix}/manage/add-oas`
);
}}
>
<FaFileImport className="relative -left-[2px] -top-[1px]" />{' '}
Expand Down
Expand Up @@ -4,6 +4,7 @@ import clsx from 'clsx';
import React from 'react';
import { FaChevronDown, FaExternalLinkAlt } from 'react-icons/fa';
import { Operation } from './types';
import globals from '../../../../Globals';

export interface OasGeneratorActionsProps {
operation: Operation;
Expand Down Expand Up @@ -50,7 +51,7 @@ export const OasGeneratorActions: React.FC<
size="sm"
onClick={e => {
window.open(
`/actions/manage/${operation.operationId}/modify`,
`${globals.urlPrefix}/actions/manage/${operation.operationId}/modify`,
'_blank'
);
}}
Expand Down
Expand Up @@ -485,6 +485,7 @@ export const generateCreateEventTriggerQuery = (
}
: {}),
replace,
headers: transformHeaders(state?.headers),
request_transform: requestTransform,
},
source.driver
Expand Down

1 comment on commit dda5454

@Q5Ca
Copy link

@Q5Ca Q5Ca commented on dda5454 Mar 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello, is this related to this GHSA-c9rw-rw2f-mj4x?

Please sign in to comment.