mirror of
https://github.com/grafana/grafana.git
synced 2025-02-20 11:48:34 -06:00
* create transport chain * add frontend * remove log * inline field updates * allow ARN, Credentials + Keys auth in frontend * configure credentials * add tests and refactor * update frontend json field names * fix tests * fix comment * add app config flag * refactor tests * add return field for tests * add flag for UI display * update comment * move logic * fix config * pass config through props * update docs * pr feedback and add docs coverage * shorten settings filename * fix imports * revert docs changes * remove log line * wrap up next as round tripper * only propagate required config * remove unused import * remove ARN option and replace with default chain * make ARN role assume as supplemental * update docs * refactor flow * sign body when necessary * remove unnecessary wrapper * remove newline * Apply suggestions from code review * PR fixes Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
25 lines
794 B
TypeScript
25 lines
794 B
TypeScript
import React from 'react';
|
|
import { DataSourceHttpSettings } from '@grafana/ui';
|
|
import { DataSourcePluginOptionsEditorProps } from '@grafana/data';
|
|
import { PromSettings } from './PromSettings';
|
|
import { PromOptions } from '../types';
|
|
import { config } from 'app/core/config';
|
|
|
|
export type Props = DataSourcePluginOptionsEditorProps<PromOptions>;
|
|
export const ConfigEditor = (props: Props) => {
|
|
const { options, onOptionsChange } = props;
|
|
return (
|
|
<>
|
|
<DataSourceHttpSettings
|
|
defaultUrl="http://localhost:9090"
|
|
dataSourceConfig={options}
|
|
showAccessOptions={true}
|
|
onChange={onOptionsChange}
|
|
sigV4AuthToggleEnabled={config.sigV4AuthEnabled}
|
|
/>
|
|
|
|
<PromSettings options={options} onOptionsChange={onOptionsChange} />
|
|
</>
|
|
);
|
|
};
|