mirror of
https://github.com/grafana/grafana.git
synced 2024-12-02 13:39:19 -06:00
1e85a6f4fd
* First stab at new page layouts behind feature toggle * Simplifying PageHeader * Progress on a new model that can more easily support new and old page layouts * Progress * rename folder * Progress * Minor change * fixes * Fixing tests * Make breadcrumbs work * Add tests for old Page component * Adding tests for new Page component and behavior * fixing page header test * Fixed test * AppChrome outside route * Renaming folder * Minor fix * Updated * Fixing StoragePage * Fix for banners Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
33 lines
688 B
TypeScript
33 lines
688 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('alert-list');
|
|
|
|
return (
|
|
<Page navModel={navModel}>
|
|
<Page.Contents>
|
|
<h1>Alerting is not enabled</h1>
|
|
To enable alerting, enable it in the Grafana config:
|
|
<div>
|
|
<pre>
|
|
{`[unified_alerting]
|
|
enable = true
|
|
`}
|
|
</pre>
|
|
</div>
|
|
<div>
|
|
For legacy alerting
|
|
<pre>
|
|
{`[alerting]
|
|
enable = true
|
|
`}
|
|
</pre>
|
|
</div>
|
|
</Page.Contents>
|
|
</Page>
|
|
);
|
|
}
|