TestDataDatasource: Add config editor (#16861)

This commit is contained in:
Ryan McKinley
2019-05-02 21:20:31 -07:00
committed by Torkel Ödegaard
parent 013f1b8d19
commit 3e6104f45a
2 changed files with 17 additions and 0 deletions

View 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 />;
}
}

View File

@@ -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);