|
|
@@ -1,19 +1,22 @@
|
|
|
// Libraries
|
|
|
import React, { PureComponent, SFC } from 'react';
|
|
|
import _ from 'lodash';
|
|
|
+
|
|
|
// Components
|
|
|
-import './../../panel/metrics_tab';
|
|
|
-import { EditorTabBody, EditorToolbarView, ToolbarButtonType } from './EditorTabBody';
|
|
|
+import 'app/features/panel/metrics_tab';
|
|
|
+import { EditorTabBody, EditorToolbarView} from './EditorTabBody';
|
|
|
import { DataSourcePicker } from 'app/core/components/Select/DataSourcePicker';
|
|
|
import { QueryInspector } from './QueryInspector';
|
|
|
import { QueryOptions } from './QueryOptions';
|
|
|
import { AngularQueryComponentScope } from 'app/features/panel/metrics_tab';
|
|
|
import { PanelOptionSection } from './PanelOptionSection';
|
|
|
+
|
|
|
// Services
|
|
|
import { getDatasourceSrv } from 'app/features/plugins/datasource_srv';
|
|
|
import { BackendSrv, getBackendSrv } from 'app/core/services/backend_srv';
|
|
|
import { AngularComponent, getAngularLoader } from 'app/core/services/AngularLoader';
|
|
|
import config from 'app/core/config';
|
|
|
+
|
|
|
// Types
|
|
|
import { PanelModel } from '../panel_model';
|
|
|
import { DashboardModel } from '../dashboard_model';
|
|
|
@@ -204,14 +207,12 @@ export class QueriesTab extends PureComponent<Props, State> {
|
|
|
const queryInspector: EditorToolbarView = {
|
|
|
title: 'Query Inspector',
|
|
|
render: this.renderQueryInspector,
|
|
|
- buttonType: ToolbarButtonType.View,
|
|
|
};
|
|
|
|
|
|
const dsHelp: EditorToolbarView = {
|
|
|
heading: 'Help',
|
|
|
icon: 'fa fa-question',
|
|
|
render: this.renderHelp,
|
|
|
- buttonType: ToolbarButtonType.View,
|
|
|
};
|
|
|
|
|
|
return (
|