File tree 3 files changed +10
-3
lines changed
frontend/libs/console/legacy-ce/src/lib
features/Actions/components/OASGenerator 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import LeftSubSidebar from '../../../Common/Layout/LeftSubSidebar/LeftSubSidebar
8
8
import styles from '../../../Common/Layout/LeftSubSidebar/LeftSubSidebar.module.scss' ;
9
9
import { isProConsole } from '../../../../utils' ;
10
10
import { Badge } from '../../../../new-components/Badge' ;
11
+ import globals from '../../../../Globals' ;
11
12
12
13
const LeftSidebar = ( {
13
14
appPrefix,
@@ -121,7 +122,9 @@ const LeftSidebar = ({
121
122
< div
122
123
className = "py-1 "
123
124
onClick = { ( ) => {
124
- browserHistory . push ( `${ appPrefix } /manage/add` ) ;
125
+ browserHistory . push (
126
+ `${ globals . urlPrefix } ${ appPrefix } /manage/add`
127
+ ) ;
125
128
} }
126
129
>
127
130
< FaEdit className = "relative -top-[1px]" /> New Action
@@ -131,7 +134,9 @@ const LeftSidebar = ({
131
134
< div
132
135
className = "py-1 "
133
136
onClick = { ( ) => {
134
- browserHistory . push ( `${ appPrefix } /manage/add-oas` ) ;
137
+ browserHistory . push (
138
+ `${ globals . urlPrefix } ${ appPrefix } /manage/add-oas`
139
+ ) ;
135
140
} }
136
141
>
137
142
< FaFileImport className = "relative -left-[2px] -top-[1px]" /> { ' ' }
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import clsx from 'clsx';
4
4
import React from 'react' ;
5
5
import { FaChevronDown , FaExternalLinkAlt } from 'react-icons/fa' ;
6
6
import { Operation } from './types' ;
7
+ import globals from '../../../../Globals' ;
7
8
8
9
export interface OasGeneratorActionsProps {
9
10
operation : Operation ;
@@ -50,7 +51,7 @@ export const OasGeneratorActions: React.FC<
50
51
size = "sm"
51
52
onClick = { e => {
52
53
window . open (
53
- `/actions/manage/${ operation . operationId } /modify` ,
54
+ `${ globals . urlPrefix } /actions/manage/${ operation . operationId } /modify` ,
54
55
'_blank'
55
56
) ;
56
57
} }
Original file line number Diff line number Diff line change @@ -485,6 +485,7 @@ export const generateCreateEventTriggerQuery = (
485
485
}
486
486
: { } ) ,
487
487
replace,
488
+ headers : transformHeaders ( state ?. headers ) ,
488
489
request_transform : requestTransform ,
489
490
} ,
490
491
source . driver
You can’t perform that action at this time.
0 commit comments