mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-23 00:22:19 +01:00
bug: remove strategies from copy breadcrumbs (#5137)
This commit is contained in:
parent
3ca22c7c5c
commit
26dcc70e85
@ -49,14 +49,12 @@ test('should render an alert when change request is enabled in any env when copy
|
|||||||
render(
|
render(
|
||||||
<Routes>
|
<Routes>
|
||||||
<Route
|
<Route
|
||||||
path={
|
path={'/projects/:projectId/features/:featureId/copy'}
|
||||||
'/projects/:projectId/features/:featureId/strategies/copy'
|
|
||||||
}
|
|
||||||
element={<CopyFeatureToggle />}
|
element={<CopyFeatureToggle />}
|
||||||
/>
|
/>
|
||||||
</Routes>,
|
</Routes>,
|
||||||
{
|
{
|
||||||
route: '/projects/default/features/someFeature/strategies/copy',
|
route: '/projects/default/features/someFeature/copy',
|
||||||
permissions: [{ permission: CREATE_FEATURE }],
|
permissions: [{ permission: CREATE_FEATURE }],
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
@ -71,12 +69,12 @@ test('should not render an alert when change request is disabled when copying fe
|
|||||||
render(
|
render(
|
||||||
<Routes>
|
<Routes>
|
||||||
<Route
|
<Route
|
||||||
path={'projects/:projectId/features/:featureId/strategies/copy'}
|
path={'projects/:projectId/features/:featureId/copy'}
|
||||||
element={<CopyFeatureToggle />}
|
element={<CopyFeatureToggle />}
|
||||||
/>
|
/>
|
||||||
</Routes>,
|
</Routes>,
|
||||||
{
|
{
|
||||||
route: '/projects/default/features/someFeature/strategies/copy',
|
route: '/projects/default/features/someFeature/copy',
|
||||||
permissions: [{ permission: CREATE_FEATURE }],
|
permissions: [{ permission: CREATE_FEATURE }],
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
@ -248,7 +248,7 @@ export const FeatureView = () => {
|
|||||||
projectId={projectId}
|
projectId={projectId}
|
||||||
data-loading
|
data-loading
|
||||||
component={Link}
|
component={Link}
|
||||||
to={`/projects/${projectId}/features/${featureId}/strategies/copy`}
|
to={`/projects/${projectId}/features/${featureId}/copy`}
|
||||||
tooltipProps={{
|
tooltipProps={{
|
||||||
title: 'Copy feature toggle',
|
title: 'Copy feature toggle',
|
||||||
}}
|
}}
|
||||||
|
@ -37,8 +37,8 @@ exports[`returns all baseRoutes 1`] = `
|
|||||||
{
|
{
|
||||||
"component": [Function],
|
"component": [Function],
|
||||||
"menu": {},
|
"menu": {},
|
||||||
"parent": "/projects/:projectId/features/:featureId/:activeTab",
|
"parent": "/projects/:projectId/features/:featureId/",
|
||||||
"path": "/projects/:projectId/features/:featureId/:activeTab/copy",
|
"path": "/projects/:projectId/features/:featureId/copy",
|
||||||
"title": "Copy",
|
"title": "Copy",
|
||||||
"type": "protected",
|
"type": "protected",
|
||||||
},
|
},
|
||||||
|
@ -76,8 +76,8 @@ export const routes: IRoute[] = [
|
|||||||
menu: {},
|
menu: {},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/projects/:projectId/features/:featureId/:activeTab/copy',
|
path: '/projects/:projectId/features/:featureId/copy',
|
||||||
parent: '/projects/:projectId/features/:featureId/:activeTab',
|
parent: '/projects/:projectId/features/:featureId/',
|
||||||
title: 'Copy',
|
title: 'Copy',
|
||||||
component: CopyFeatureToggle,
|
component: CopyFeatureToggle,
|
||||||
type: 'protected',
|
type: 'protected',
|
||||||
|
@ -103,7 +103,7 @@ export const ActionsCell: VFC<IActionsCellProps> = ({
|
|||||||
onClick={handleClose}
|
onClick={handleClose}
|
||||||
disabled={!hasAccess}
|
disabled={!hasAccess}
|
||||||
component={RouterLink}
|
component={RouterLink}
|
||||||
to={`/projects/${projectId}/features/${featureId}/strategies/copy`}
|
to={`/projects/${projectId}/features/${featureId}/copy`}
|
||||||
>
|
>
|
||||||
<ListItemIcon>
|
<ListItemIcon>
|
||||||
<FileCopyIcon />
|
<FileCopyIcon />
|
||||||
|
Loading…
Reference in New Issue
Block a user