mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Profile/Help: Expose option to disable profile section and help menu (#46308)
* Expose option to disable help menu * Expose option to disable profile menu * Add Profile FeatureTogglePage * Update public/app/features/profile/FeatureTogglePage.tsx Uptake PR wording suggestion. Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com> * Fix front end lint issue * Fix back end lint issue Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
This commit is contained in:
@@ -12,6 +12,7 @@ import { getRoutes as getPluginCatalogRoutes } from 'app/features/plugins/admin/
|
||||
import { contextSrv } from 'app/core/services/context_srv';
|
||||
import { getLiveRoutes } from 'app/features/live/pages/routes';
|
||||
import { getAlertingRoutes } from 'app/features/alerting/routes';
|
||||
import { getProfileRoutes } from 'app/features/profile/routes';
|
||||
import { ServiceAccountPage } from 'app/features/serviceaccounts/ServiceAccountPage';
|
||||
|
||||
export const extraRoutes: RouteDescriptor[] = [];
|
||||
@@ -247,24 +248,6 @@ export function getAppRoutes(): RouteDescriptor[] {
|
||||
),
|
||||
component: SafeDynamicImport(() => import(/* webpackChunkName: "TeamPages" */ 'app/features/teams/TeamPages')),
|
||||
},
|
||||
{
|
||||
path: '/profile',
|
||||
component: SafeDynamicImport(
|
||||
() => import(/* webpackChunkName: "UserProfileEditPage" */ 'app/features/profile/UserProfileEditPage')
|
||||
),
|
||||
},
|
||||
{
|
||||
path: '/profile/password',
|
||||
component: SafeDynamicImport(
|
||||
() => import(/* webPackChunkName: "ChangePasswordPage" */ 'app/features/profile/ChangePasswordPage')
|
||||
),
|
||||
},
|
||||
{
|
||||
path: '/profile/select-org',
|
||||
component: SafeDynamicImport(
|
||||
() => import(/* webpackChunkName: "SelectOrgPage" */ 'app/features/org/SelectOrgPage')
|
||||
),
|
||||
},
|
||||
// ADMIN
|
||||
|
||||
{
|
||||
@@ -436,6 +419,7 @@ export function getAppRoutes(): RouteDescriptor[] {
|
||||
...getPluginCatalogRoutes(),
|
||||
...getLiveRoutes(),
|
||||
...getAlertingRoutes(),
|
||||
...getProfileRoutes(),
|
||||
...extraRoutes,
|
||||
{
|
||||
path: '/*',
|
||||
|
||||
Reference in New Issue
Block a user