mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
renaming component
This commit is contained in:
@@ -14,7 +14,7 @@ interface State {
|
||||
help: string;
|
||||
}
|
||||
|
||||
export default class PanelHelp extends PureComponent<Props, State> {
|
||||
export default class PluginHelp extends PureComponent<Props, State> {
|
||||
state = {
|
||||
isError: false,
|
||||
isLoading: false,
|
||||
@@ -48,7 +48,7 @@ export default class PanelHelp extends PureComponent<Props, State> {
|
||||
const markdown = new Remarkable();
|
||||
const helpHtml = markdown.render(response);
|
||||
|
||||
if (response === '' && this.props.type) {
|
||||
if (response === '' && this.props.type === 'help') {
|
||||
this.setState({
|
||||
isError: false,
|
||||
isLoading: false,
|
||||
@@ -21,7 +21,7 @@ import config from 'app/core/config';
|
||||
import { PanelModel } from '../panel_model';
|
||||
import { DashboardModel } from '../dashboard_model';
|
||||
import { DataSourceSelectItem, DataQuery } from 'app/types';
|
||||
import PanelHelp from '../../../core/components/PanelHelp/PanelHelp';
|
||||
import PluginHelp from '../../../core/components/PanelHelp/PluginHelp';
|
||||
|
||||
interface Props {
|
||||
panel: PanelModel;
|
||||
@@ -134,7 +134,7 @@ export class QueriesTab extends PureComponent<Props, State> {
|
||||
};
|
||||
|
||||
renderHelp = () => {
|
||||
return <PanelHelp plugin={this.state.currentDS.meta} type="query_help" />;
|
||||
return <PluginHelp plugin={this.state.currentDS.meta} type="query_help" />;
|
||||
};
|
||||
|
||||
onAddQuery = (query?: Partial<DataQuery>) => {
|
||||
|
||||
@@ -8,7 +8,7 @@ import { getDatasourceSrv } from '../../plugins/datasource_srv';
|
||||
// Components
|
||||
import { EditorTabBody } from './EditorTabBody';
|
||||
import { VizTypePicker } from './VizTypePicker';
|
||||
import PanelHelp from 'app/core/components/PanelHelp/PanelHelp';
|
||||
import PluginHelp from 'app/core/components/PanelHelp/PluginHelp';
|
||||
import { FadeIn } from 'app/core/components/Animations/FadeIn';
|
||||
import { PanelOptionSection } from './PanelOptionSection';
|
||||
|
||||
@@ -205,7 +205,7 @@ export class VisualizationTab extends PureComponent<Props, State> {
|
||||
}
|
||||
};
|
||||
|
||||
renderHelp = () => <PanelHelp plugin={this.state.currentDataSource.meta} type="panel_help" />;
|
||||
renderHelp = () => <PluginHelp plugin={this.state.currentDataSource.meta} type="panel_help" />;
|
||||
|
||||
render() {
|
||||
const { plugin } = this.props;
|
||||
|
||||
Reference in New Issue
Block a user