|
|
|
@ -4,16 +4,17 @@ import { AzureDataSourceSettings } from '../types'; |
|
|
|
|
|
|
|
|
|
export interface Props { |
|
|
|
|
options: AzureDataSourceSettings; |
|
|
|
|
onUpdateOption: (key: string, val: any, secure: boolean) => void; |
|
|
|
|
onUpdateOption: (key: string, val: any) => void; |
|
|
|
|
onUpdateSecureOption: (key: string, val: any) => void; |
|
|
|
|
onResetOptionKey: (key: string) => void; |
|
|
|
|
} |
|
|
|
|
export class InsightsConfig extends PureComponent<Props> { |
|
|
|
|
onAppInsightsAppIdChange = (event: ChangeEvent<HTMLInputElement>) => { |
|
|
|
|
this.props.onUpdateOption('appInsightsAppId', event.target.value, false); |
|
|
|
|
this.props.onUpdateOption('appInsightsAppId', event.target.value); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
onAppInsightsApiKeyChange = (event: ChangeEvent<HTMLInputElement>) => { |
|
|
|
|
this.props.onUpdateOption('appInsightsApiKey', event.target.value, true); |
|
|
|
|
this.props.onUpdateSecureOption('appInsightsApiKey', event.target.value); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
onAppInsightsResetApiKey = () => { |
|
|
|
|