Skip to content
This repository was archived by the owner on Jul 31, 2025. It is now read-only.

Commit 1443c0a

Browse files
authored
Finalizing the Query Editor UI (#14)
1 parent 58ca149 commit 1443c0a

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/QueryEditor.tsx

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,21 @@ import React, { PureComponent } from 'react';
22
import { QueryEditorProps } from '@grafana/data';
33
import { DataSource } from './datasource';
44
import { MyDataSourceOptions, MyQuery } from './types';
5-
import { Label } from '@grafana/ui';
5+
import { InfoBox } from '@grafana/ui';
66

77
type Props = QueryEditorProps<DataSource, MyQuery, MyDataSourceOptions>;
88

99
export class QueryEditor extends PureComponent<Props> {
1010
render() {
1111
return (
12-
<div className="gf-form">
13-
<Label description="Only for Backend">Grafana Git Workflow</Label>
14-
</div>
12+
<InfoBox
13+
title="Do Not Use This Data Source!"
14+
severity="error"
15+
url="https://github.com/NovatecConsulting/grafana-dashboard-sync-plugin"
16+
>
17+
This data source is <strong>not</strong> intended to be used to query data or to be used in dashboards and
18+
panels.
19+
</InfoBox>
1520
);
1621
}
1722
}

0 commit comments

Comments
 (0)