Submit
Path:
~
/
/
proc
/
self
/
root
/
proc
/
self
/
root
/
usr
/
share
/
grafana
/
public
/
app
/
features
/
correlations
/
components
/
File Content:
EmptyCorrelationsCTA.tsx
import React from 'react'; import { Card } from '@grafana/ui'; import EmptyListCTA from 'app/core/components/EmptyListCTA/EmptyListCTA'; interface Props { onClick?: () => void; canWriteCorrelations: boolean; } export const EmptyCorrelationsCTA = ({ onClick, canWriteCorrelations }: Props) => { // TODO: if there are no datasources show a different message return canWriteCorrelations ? ( <EmptyListCTA title="You haven't defined any correlation yet." buttonIcon="gf-glue" onClick={onClick} buttonTitle="Add correlation" proTip="you can also define correlations via datasource provisioning" /> ) : ( <Card> <Card.Heading>There are no correlations configured yet.</Card.Heading> <Card.Description>Please contact your administrator to create new correlations.</Card.Description> </Card> ); };
Edit
Rename
Chmod
Delete
FILE
FOLDER
INFO
Name
Size
Permission
Action
Wizard
---
0755
EmptyCorrelationsCTA.tsx
863 bytes
0644
N4ST4R_ID | Naxtarrr