mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
* influxdb: switch the raw influxql editor from angular to react * influxdb: raw-influxql: better callback-naming * influxdb: raw-influxql: use custom hook * influxdb: flux: raw-editor: add unit tests
10 lines
299 B
TypeScript
10 lines
299 B
TypeScript
import coreModule from 'app/core/core_module';
|
|
import { RawInfluxQLEditor } from './components/RawInfluxQLEditor';
|
|
|
|
coreModule.directive('rawInfluxEditor', [
|
|
'reactDirective',
|
|
(reactDirective: any) => {
|
|
return reactDirective(RawInfluxQLEditor, ['query', 'onChange', 'onRunQuery']);
|
|
},
|
|
]);
|