mirror of
				https://github.com/strapi/strapi.git
				synced 2025-11-03 19:36:20 +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)
 | 
			
		||||
  ? [
 | 
			
		||||
      {
 | 
			
		||||
        async Component() {
 | 
			
		||||
          const component = await import(
 | 
			
		||||
            /* webpackChunkName: "sso-settings-page" */ '../SingleSignOn'
 | 
			
		||||
          );
 | 
			
		||||
const routes = [];
 | 
			
		||||
 | 
			
		||||
          return component;
 | 
			
		||||
        },
 | 
			
		||||
        to: '/settings/single-sign-on',
 | 
			
		||||
        exact: true,
 | 
			
		||||
      },
 | 
			
		||||
    ]
 | 
			
		||||
  : [];
 | 
			
		||||
if (strapi.features.isEnabled(strapi.features.SSO)) {
 | 
			
		||||
  routes.push({
 | 
			
		||||
    async Component() {
 | 
			
		||||
      const component = await import(
 | 
			
		||||
        /* webpackChunkName: "sso-settings-page" */ '../pages/SingleSignOn'
 | 
			
		||||
      );
 | 
			
		||||
 | 
			
		||||
const customRoutes = [...ssoRoutes];
 | 
			
		||||
      return component;
 | 
			
		||||
    },
 | 
			
		||||
    to: '/settings/single-sign-on',
 | 
			
		||||
    exact: true,
 | 
			
		||||
  });
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export default customRoutes;
 | 
			
		||||
export default routes;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user