mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
TestDataDatasource: Add config editor (#16861)
This commit is contained in:
committed by
Torkel Ödegaard
parent
013f1b8d19
commit
3e6104f45a
15
public/app/plugins/datasource/testdata/ConfigEditor.tsx
vendored
Normal file
15
public/app/plugins/datasource/testdata/ConfigEditor.tsx
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
// Libraries
|
||||
import React, { PureComponent } from 'react';
|
||||
|
||||
import { DataSourcePluginOptionsEditorProps } from '@grafana/ui';
|
||||
|
||||
type Props = DataSourcePluginOptionsEditorProps<any>;
|
||||
|
||||
/**
|
||||
* Empty Config Editor -- settings to save
|
||||
*/
|
||||
export class ConfigEditor extends PureComponent<Props> {
|
||||
render() {
|
||||
return <div />;
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
import { DataSourcePlugin } from '@grafana/ui';
|
||||
import { TestDataDatasource } from './datasource';
|
||||
import { TestDataQueryCtrl } from './query_ctrl';
|
||||
import { ConfigEditor } from './ConfigEditor';
|
||||
|
||||
class TestDataAnnotationsQueryCtrl {
|
||||
annotation: any;
|
||||
@@ -9,5 +10,6 @@ class TestDataAnnotationsQueryCtrl {
|
||||
}
|
||||
|
||||
export const plugin = new DataSourcePlugin(TestDataDatasource)
|
||||
.setConfigEditor(ConfigEditor)
|
||||
.setQueryCtrl(TestDataQueryCtrl)
|
||||
.setAnnotationQueryCtrl(TestDataAnnotationsQueryCtrl);
|
||||
|
||||
Reference in New Issue
Block a user