mirror of
https://github.com/Unleash/unleash.git
synced 2025-08-18 13:48:58 +02:00
bug: remove strategies from copy breadcrumbs
This commit is contained in:
parent
90296bed82
commit
939a32ad0a
@ -50,13 +50,13 @@ test('should render an alert when change request is enabled in any env when copy
|
||||
<Routes>
|
||||
<Route
|
||||
path={
|
||||
'/projects/:projectId/features/:featureId/strategies/copy'
|
||||
'/projects/:projectId/features/:featureId/copy'
|
||||
}
|
||||
element={<CopyFeatureToggle />}
|
||||
/>
|
||||
</Routes>,
|
||||
{
|
||||
route: '/projects/default/features/someFeature/strategies/copy',
|
||||
route: '/projects/default/features/someFeature/copy',
|
||||
permissions: [{ permission: CREATE_FEATURE }],
|
||||
},
|
||||
);
|
||||
@ -71,12 +71,12 @@ test('should not render an alert when change request is disabled when copying fe
|
||||
render(
|
||||
<Routes>
|
||||
<Route
|
||||
path={'projects/:projectId/features/:featureId/strategies/copy'}
|
||||
path={'projects/:projectId/features/:featureId/copy'}
|
||||
element={<CopyFeatureToggle />}
|
||||
/>
|
||||
</Routes>,
|
||||
{
|
||||
route: '/projects/default/features/someFeature/strategies/copy',
|
||||
route: '/projects/default/features/someFeature/copy',
|
||||
permissions: [{ permission: CREATE_FEATURE }],
|
||||
},
|
||||
);
|
||||
|
@ -248,7 +248,7 @@ export const FeatureView = () => {
|
||||
projectId={projectId}
|
||||
data-loading
|
||||
component={Link}
|
||||
to={`/projects/${projectId}/features/${featureId}/strategies/copy`}
|
||||
to={`/projects/${projectId}/features/${featureId}/copy`}
|
||||
tooltipProps={{
|
||||
title: 'Copy feature toggle',
|
||||
}}
|
||||
|
@ -76,8 +76,8 @@ export const routes: IRoute[] = [
|
||||
menu: {},
|
||||
},
|
||||
{
|
||||
path: '/projects/:projectId/features/:featureId/:activeTab/copy',
|
||||
parent: '/projects/:projectId/features/:featureId/:activeTab',
|
||||
path: '/projects/:projectId/features/:featureId/copy',
|
||||
parent: '/projects/:projectId/features/:featureId/',
|
||||
title: 'Copy',
|
||||
component: CopyFeatureToggle,
|
||||
type: 'protected',
|
||||
|
@ -103,7 +103,7 @@ export const ActionsCell: VFC<IActionsCellProps> = ({
|
||||
onClick={handleClose}
|
||||
disabled={!hasAccess}
|
||||
component={RouterLink}
|
||||
to={`/projects/${projectId}/features/${featureId}/strategies/copy`}
|
||||
to={`/projects/${projectId}/features/${featureId}/copy`}
|
||||
>
|
||||
<ListItemIcon>
|
||||
<FileCopyIcon />
|
||||
|
Loading…
Reference in New Issue
Block a user