mirror of
https://github.com/grafana/grafana.git
synced 2026-09-05 04:40:13 -05:00
Connections: Add redirect notice for datasources and plugins pages (#61037)
* add redirect notice for datasources and plugins pages * do not depend on the internal implementation of Alert The deleted css piece was problematic because it relied on the internals of Alert. If we don't remove that padding, then the Alert looks a bit off, so I added some title to the Alert to look better. This way the Connections LinkButton is not vertically aligned to the center, but this is the closest we can get to the designed alert without doing hacks and reimplementing the Alert component.
This commit is contained in:
@@ -2,6 +2,10 @@ import React from 'react';
|
||||
|
||||
import { config } from '@grafana/runtime';
|
||||
import { Page } from 'app/core/components/Page/Page';
|
||||
import {
|
||||
ConnectionsRedirectNotice,
|
||||
DestinationPage,
|
||||
} from 'app/features/connections/components/ConnectionsRedirectNotice';
|
||||
|
||||
import { DataSourceAddButton } from '../components/DataSourceAddButton';
|
||||
import { DataSourcesList } from '../components/DataSourcesList';
|
||||
@@ -11,6 +15,9 @@ export function DataSourcesListPage() {
|
||||
return (
|
||||
<Page navId="datasources" actions={actions}>
|
||||
<Page.Contents>
|
||||
{config.featureToggles.dataConnectionsConsole && (
|
||||
<ConnectionsRedirectNotice destinationPage={DestinationPage.dataSources} />
|
||||
)}
|
||||
<DataSourcesList />
|
||||
</Page.Contents>
|
||||
</Page>
|
||||
|
||||
Reference in New Issue
Block a user