mirror of
https://github.com/strapi/strapi.git
synced 2025-11-04 11:54:10 +00:00
Settings: Nest SSO settings page under pages
This commit is contained in:
parent
617bf4327d
commit
b52cfd2ee1
@ -17,9 +17,9 @@ import { Select, Option } from '@strapi/design-system/Select';
|
||||
import { Grid, GridItem } from '@strapi/design-system/Grid';
|
||||
import { useIntl } from 'react-intl';
|
||||
import isEqual from 'lodash/isEqual';
|
||||
import { getRequestUrl } from '../../../../../admin/src/utils';
|
||||
import { useRolesList, useSettingsForm } from '../../../../../admin/src/hooks';
|
||||
import adminPermissions from '../../../../../admin/src/permissions';
|
||||
import { getRequestUrl } from '../../../../../../admin/src/utils';
|
||||
import { useRolesList, useSettingsForm } from '../../../../../../admin/src/hooks';
|
||||
import adminPermissions from '../../../../../../admin/src/permissions';
|
||||
import schema from './utils/schema';
|
||||
|
||||
const ssoPermissions = {
|
||||
@ -1,19 +1,17 @@
|
||||
const ssoRoutes = strapi.features.isEnabled(strapi.features.SSO)
|
||||
? [
|
||||
{
|
||||
const routes = [];
|
||||
|
||||
if (strapi.features.isEnabled(strapi.features.SSO)) {
|
||||
routes.push({
|
||||
async Component() {
|
||||
const component = await import(
|
||||
/* webpackChunkName: "sso-settings-page" */ '../SingleSignOn'
|
||||
/* webpackChunkName: "sso-settings-page" */ '../pages/SingleSignOn'
|
||||
);
|
||||
|
||||
return component;
|
||||
},
|
||||
to: '/settings/single-sign-on',
|
||||
exact: true,
|
||||
},
|
||||
]
|
||||
: [];
|
||||
});
|
||||
}
|
||||
|
||||
const customRoutes = [...ssoRoutes];
|
||||
|
||||
export default customRoutes;
|
||||
export default routes;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user