mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[Search] Add telemetry API key button (#178665)
## Summary This adds a telemetry ID to the generate API key button for connectors.
This commit is contained in:
parent
d8a8b4f139
commit
e46ddb1a5f
1 changed files with 7 additions and 1 deletions
|
@ -156,6 +156,7 @@ export const ApiKeyConfig: React.FC<{
|
||||||
onClick={clickGenerateApiKey}
|
onClick={clickGenerateApiKey}
|
||||||
isLoading={status === Status.LOADING}
|
isLoading={status === Status.LOADING}
|
||||||
isDisabled={indexName.length === 0}
|
isDisabled={indexName.length === 0}
|
||||||
|
data-telemetry-id="entSearch-content-connector-generateApiKeyButton"
|
||||||
>
|
>
|
||||||
{i18n.translate(
|
{i18n.translate(
|
||||||
'xpack.enterpriseSearch.content.indices.configurationConnector.apiKey.button.label',
|
'xpack.enterpriseSearch.content.indices.configurationConnector.apiKey.button.label',
|
||||||
|
@ -172,7 +173,12 @@ export const ApiKeyConfig: React.FC<{
|
||||||
<>
|
<>
|
||||||
<EuiSpacer />
|
<EuiSpacer />
|
||||||
<EuiFlexItem>
|
<EuiFlexItem>
|
||||||
<ApiKey apiKey={data?.encoded} label="API Key" />
|
<ApiKey
|
||||||
|
apiKey={data?.encoded}
|
||||||
|
label={i18n.translate('xpack.enterpriseSearch.apiKeyConfig.apiKey.apiKeyLabel', {
|
||||||
|
defaultMessage: 'API Key',
|
||||||
|
})}
|
||||||
|
/>
|
||||||
</EuiFlexItem>
|
</EuiFlexItem>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue