mirror of
https://github.com/grafana/grafana.git
synced 2025-02-13 00:55:47 -06:00
* feat(Connections): create sub-pages wrapped by `<Page>` * feat(Connections): rename the Connections page and update routes * feat(Connections): use new url for editing datasources * refactor(Connections): remove unused tab components * feat(Connections): update routes and nav titles * tests: fix tests for Connections * tests: fix typo in backend tests
22 lines
606 B
TypeScript
22 lines
606 B
TypeScript
import { SafeDynamicImport } from 'app/core/components/DynamicImports/SafeDynamicImport';
|
|
import { config } from 'app/core/config';
|
|
import { RouteDescriptor } from 'app/core/navigation/types';
|
|
|
|
import { ROUTE_BASE_ID } from './constants';
|
|
|
|
export function getRoutes(): RouteDescriptor[] {
|
|
if (config.featureToggles.dataConnectionsConsole) {
|
|
return [
|
|
{
|
|
path: `/${ROUTE_BASE_ID}`,
|
|
exact: false,
|
|
component: SafeDynamicImport(
|
|
() => import(/* webpackChunkName: "Connections"*/ 'app/features/connections/Connections')
|
|
),
|
|
},
|
|
];
|
|
}
|
|
|
|
return [];
|
|
}
|