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:
Cameron Waterman
2022-03-29 10:27:53 -05:00
committed by GitHub
parent 932f43b220
commit 8426cfe400
11 changed files with 148 additions and 36 deletions

View File

@@ -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: '/*',