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;
|
help: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export default class PanelHelp extends PureComponent<Props, State> {
|
export default class PluginHelp extends PureComponent<Props, State> {
|
||||||
state = {
|
state = {
|
||||||
isError: false,
|
isError: false,
|
||||||
isLoading: false,
|
isLoading: false,
|
||||||
@@ -48,7 +48,7 @@ export default class PanelHelp extends PureComponent<Props, State> {
|
|||||||
const markdown = new Remarkable();
|
const markdown = new Remarkable();
|
||||||
const helpHtml = markdown.render(response);
|
const helpHtml = markdown.render(response);
|
||||||
|
|
||||||
if (response === '' && this.props.type) {
|
if (response === '' && this.props.type === 'help') {
|
||||||
this.setState({
|
this.setState({
|
||||||
isError: false,
|
isError: false,
|
||||||
isLoading: false,
|
isLoading: false,
|
||||||
@@ -21,7 +21,7 @@ import config from 'app/core/config';
|
|||||||
import { PanelModel } from '../panel_model';
|
import { PanelModel } from '../panel_model';
|
||||||
import { DashboardModel } from '../dashboard_model';
|
import { DashboardModel } from '../dashboard_model';
|
||||||
import { DataSourceSelectItem, DataQuery } from 'app/types';
|
import { DataSourceSelectItem, DataQuery } from 'app/types';
|
||||||
import PanelHelp from '../../../core/components/PanelHelp/PanelHelp';
|
import PluginHelp from '../../../core/components/PanelHelp/PluginHelp';
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
panel: PanelModel;
|
panel: PanelModel;
|
||||||
@@ -134,7 +134,7 @@ export class QueriesTab extends PureComponent<Props, State> {
|
|||||||
};
|
};
|
||||||
|
|
||||||
renderHelp = () => {
|
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>) => {
|
onAddQuery = (query?: Partial<DataQuery>) => {
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import { getDatasourceSrv } from '../../plugins/datasource_srv';
|
|||||||
// Components
|
// Components
|
||||||
import { EditorTabBody } from './EditorTabBody';
|
import { EditorTabBody } from './EditorTabBody';
|
||||||
import { VizTypePicker } from './VizTypePicker';
|
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 { FadeIn } from 'app/core/components/Animations/FadeIn';
|
||||||
import { PanelOptionSection } from './PanelOptionSection';
|
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() {
|
render() {
|
||||||
const { plugin } = this.props;
|
const { plugin } = this.props;
|
||||||
|
|||||||
Reference in New Issue
Block a user