mirror of https://github.com/grafana/grafana.git
[InfluxDB]: Remove version notices (#111778)
This commit is contained in:
parent
5639ecf711
commit
0bccb1c4ba
|
@ -8,7 +8,7 @@ import {
|
||||||
updateDatasourcePluginJsonDataOption,
|
updateDatasourcePluginJsonDataOption,
|
||||||
} from '@grafana/data';
|
} from '@grafana/data';
|
||||||
import { config } from '@grafana/runtime';
|
import { config } from '@grafana/runtime';
|
||||||
import { Alert, DataSourceHttpSettings, InlineField, Select, Field, Input, FieldSet, TextLink } from '@grafana/ui';
|
import { Alert, DataSourceHttpSettings, InlineField, Select, Field, Input, FieldSet } from '@grafana/ui';
|
||||||
|
|
||||||
import { BROWSER_MODE_DISABLED_MESSAGE } from '../../../constants';
|
import { BROWSER_MODE_DISABLED_MESSAGE } from '../../../constants';
|
||||||
import { InfluxOptions, InfluxOptionsV1, InfluxVersion } from '../../../types';
|
import { InfluxOptions, InfluxOptionsV1, InfluxVersion } from '../../../types';
|
||||||
|
@ -60,11 +60,6 @@ export class ConfigEditor extends PureComponent<Props, State> {
|
||||||
this.htmlPrefix = uniqueId('influxdb-config');
|
this.htmlPrefix = uniqueId('influxdb-config');
|
||||||
}
|
}
|
||||||
|
|
||||||
versionNotice = {
|
|
||||||
Flux: 'Support for Flux in Grafana is currently in beta',
|
|
||||||
SQL: 'Support for SQL in Grafana is currently in alpha',
|
|
||||||
};
|
|
||||||
|
|
||||||
onVersionChanged = (selected: SelectableValue<InfluxVersion>) => {
|
onVersionChanged = (selected: SelectableValue<InfluxVersion>) => {
|
||||||
const { options, onOptionsChange } = this.props;
|
const { options, onOptionsChange } = this.props;
|
||||||
|
|
||||||
|
@ -126,17 +121,6 @@ export class ConfigEditor extends PureComponent<Props, State> {
|
||||||
</Field>
|
</Field>
|
||||||
</FieldSet>
|
</FieldSet>
|
||||||
|
|
||||||
{options.jsonData.version !== InfluxVersion.InfluxQL && (
|
|
||||||
<Alert severity="info" title={this.versionNotice[options.jsonData.version!]}>
|
|
||||||
<p>
|
|
||||||
Please report any issues to: <br />
|
|
||||||
<TextLink href="https://github.com/grafana/grafana/issues/new/choose" external>
|
|
||||||
https://github.com/grafana/grafana/issues
|
|
||||||
</TextLink>
|
|
||||||
</p>
|
|
||||||
</Alert>
|
|
||||||
)}
|
|
||||||
|
|
||||||
{isDirectAccess && (
|
{isDirectAccess && (
|
||||||
<Alert title="Error" severity="error">
|
<Alert title="Error" severity="error">
|
||||||
{BROWSER_MODE_DISABLED_MESSAGE}
|
{BROWSER_MODE_DISABLED_MESSAGE}
|
||||||
|
|
Loading…
Reference in New Issue