mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-23 00:22:19 +01:00
Add configure environments link to project settings (#8391)
This commit is contained in:
parent
f23ba70bb4
commit
eb2d1fb905
@ -1,4 +1,5 @@
|
|||||||
import { useMemo, useState } from 'react';
|
import { useMemo, useState } from 'react';
|
||||||
|
import { Link as RouterLink } from 'react-router-dom';
|
||||||
import { ConditionallyRender } from 'component/common/ConditionallyRender/ConditionallyRender';
|
import { ConditionallyRender } from 'component/common/ConditionallyRender/ConditionallyRender';
|
||||||
import { PageContent } from 'component/common/PageContent/PageContent';
|
import { PageContent } from 'component/common/PageContent/PageContent';
|
||||||
import { PageHeader } from 'component/common/PageHeader/PageHeader';
|
import { PageHeader } from 'component/common/PageHeader/PageHeader';
|
||||||
@ -6,9 +7,8 @@ import { UPDATE_PROJECT } from 'component/providers/AccessProvider/permissions';
|
|||||||
import ApiError from 'component/common/ApiError/ApiError';
|
import ApiError from 'component/common/ApiError/ApiError';
|
||||||
import useToast from 'hooks/useToast';
|
import useToast from 'hooks/useToast';
|
||||||
import useUiConfig from 'hooks/api/getters/useUiConfig/useUiConfig';
|
import useUiConfig from 'hooks/api/getters/useUiConfig/useUiConfig';
|
||||||
import { Alert, styled, TableBody, TableRow } from '@mui/material';
|
import { Alert, styled, TableBody, TableRow, Link } from '@mui/material';
|
||||||
import useProjectApi from 'hooks/api/actions/useProjectApi/useProjectApi';
|
import useProjectApi from 'hooks/api/actions/useProjectApi/useProjectApi';
|
||||||
import { Link } from 'react-router-dom';
|
|
||||||
import PermissionSwitch from 'component/common/PermissionSwitch/PermissionSwitch';
|
import PermissionSwitch from 'component/common/PermissionSwitch/PermissionSwitch';
|
||||||
import type { IProjectEnvironment } from 'interfaces/environments';
|
import type { IProjectEnvironment } from 'interfaces/environments';
|
||||||
import { getEnabledEnvs } from './helpers';
|
import { getEnabledEnvs } from './helpers';
|
||||||
@ -225,10 +225,16 @@ const ProjectEnvironmentList = () => {
|
|||||||
<PageHeader
|
<PageHeader
|
||||||
title={`Environments (${rows.length})`}
|
title={`Environments (${rows.length})`}
|
||||||
actions={
|
actions={
|
||||||
|
<>
|
||||||
<Search
|
<Search
|
||||||
initialValue={globalFilter}
|
initialValue={globalFilter}
|
||||||
onChange={setGlobalFilter}
|
onChange={setGlobalFilter}
|
||||||
/>
|
/>
|
||||||
|
<PageHeader.Divider />
|
||||||
|
<Link component={RouterLink} to='/environments'>
|
||||||
|
Configure environments
|
||||||
|
</Link>
|
||||||
|
</>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
@ -245,12 +251,15 @@ const ProjectEnvironmentList = () => {
|
|||||||
retrieve configured activation strategies for a specific
|
retrieve configured activation strategies for a specific
|
||||||
environment, the application must use an environment
|
environment, the application must use an environment
|
||||||
specific API token. You can look up the environment-specific{' '}
|
specific API token. You can look up the environment-specific{' '}
|
||||||
<Link to='/admin/api'>API tokens here</Link>.
|
<RouterLink to='/admin/api'>API tokens here</RouterLink>.
|
||||||
<br />
|
<br />
|
||||||
<br />
|
<br />
|
||||||
Your administrator can configure an environment-specific API
|
Your administrator can configure an environment-specific API
|
||||||
token to be used in the SDK. If you are an administrator you
|
token to be used in the SDK. If you are an administrator you
|
||||||
can <Link to='/admin/api'>create a new API token here</Link>
|
can{' '}
|
||||||
|
<RouterLink to='/admin/api'>
|
||||||
|
create a new API token here
|
||||||
|
</RouterLink>
|
||||||
.
|
.
|
||||||
</StyledAlert>
|
</StyledAlert>
|
||||||
<SearchHighlightProvider value={globalFilter}>
|
<SearchHighlightProvider value={globalFilter}>
|
||||||
|
Loading…
Reference in New Issue
Block a user