mirror of
https://github.com/grafana/grafana.git
synced 2025-02-16 18:34:52 -06:00
ServiceAccounts: Wrap ServiceAccountPage route in dynamic import (#57669)
This commit is contained in:
parent
b346ae0310
commit
05872283b5
@ -223,4 +223,4 @@ export const ServiceAccountPageUnconnected = ({
|
||||
);
|
||||
};
|
||||
|
||||
export const ServiceAccountPage = connector(ServiceAccountPageUnconnected);
|
||||
export default connector(ServiceAccountPageUnconnected);
|
||||
|
@ -14,7 +14,6 @@ import { DATASOURCES_ROUTES } from 'app/features/datasources/constants';
|
||||
import { getLiveRoutes } from 'app/features/live/pages/routes';
|
||||
import { getRoutes as getPluginCatalogRoutes } from 'app/features/plugins/admin/routes';
|
||||
import { getProfileRoutes } from 'app/features/profile/routes';
|
||||
import { ServiceAccountPage } from 'app/features/serviceaccounts/ServiceAccountPage';
|
||||
import { AccessControlAction, DashboardRoutes } from 'app/types';
|
||||
|
||||
import { SafeDynamicImport } from '../core/components/DynamicImports/SafeDynamicImport';
|
||||
@ -269,7 +268,9 @@ export function getAppRoutes(): RouteDescriptor[] {
|
||||
},
|
||||
{
|
||||
path: '/org/serviceaccounts/:id',
|
||||
component: ServiceAccountPage,
|
||||
component: SafeDynamicImport(
|
||||
() => import(/* webpackChunkName: "ServiceAccountPage" */ 'app/features/serviceaccounts/ServiceAccountPage')
|
||||
),
|
||||
},
|
||||
{
|
||||
path: '/org/teams',
|
||||
|
Loading…
Reference in New Issue
Block a user