mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Deprecate browser access mode for the Graphite data source. (#38783)
* Deprecate browser access mode for Graphite * Update docs * Update copy
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import React, { PureComponent } from 'react';
|
||||
import { DataSourceHttpSettings, InlineFormLabel, LegacyForms } from '@grafana/ui';
|
||||
import { Alert, DataSourceHttpSettings, InlineFormLabel, LegacyForms } from '@grafana/ui';
|
||||
const { Select, Switch } = LegacyForms;
|
||||
import {
|
||||
DataSourcePluginOptionsEditorProps,
|
||||
@@ -61,6 +61,12 @@ export class ConfigEditor extends PureComponent<Props, State> {
|
||||
|
||||
return (
|
||||
<>
|
||||
{options.access === 'direct' && (
|
||||
<Alert title="Deprecation Notice" severity="warning">
|
||||
This data source uses browser access mode. This mode is deprecated and will be removed in the future. Please
|
||||
use server access mode instead.
|
||||
</Alert>
|
||||
)}
|
||||
<DataSourceHttpSettings
|
||||
defaultUrl="http://localhost:8080"
|
||||
dataSourceConfig={options}
|
||||
|
||||
Reference in New Issue
Block a user