mirror of
https://github.com/grafana/grafana.git
synced 2025-02-13 09:05:45 -06:00
* 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>
24 lines
536 B
TypeScript
24 lines
536 B
TypeScript
import React from 'react';
|
|
import Page from 'app/core/components/Page/Page';
|
|
import { useNavModel } from 'app/core/hooks/useNavModel';
|
|
|
|
export default function FeatureTogglePage() {
|
|
const navModel = useNavModel('profile-settings');
|
|
|
|
return (
|
|
<Page navModel={navModel}>
|
|
<Page.Contents>
|
|
<h1>Profile is not enabled.</h1>
|
|
Enable profile in the Grafana config file.
|
|
<div>
|
|
<pre>
|
|
{`[profile]
|
|
enable = true
|
|
`}
|
|
</pre>
|
|
</div>
|
|
</Page.Contents>
|
|
</Page>
|
|
);
|
|
}
|