mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -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}
|
||||
isLoading={status === Status.LOADING}
|
||||
isDisabled={indexName.length === 0}
|
||||
data-telemetry-id="entSearch-content-connector-generateApiKeyButton"
|
||||
>
|
||||
{i18n.translate(
|
||||
'xpack.enterpriseSearch.content.indices.configurationConnector.apiKey.button.label',
|
||||
|
@ -172,7 +173,12 @@ export const ApiKeyConfig: React.FC<{
|
|||
<>
|
||||
<EuiSpacer />
|
||||
<EuiFlexItem>
|
||||
<ApiKey apiKey={data?.encoded} label="API Key" />
|
||||
<ApiKey
|
||||
apiKey={data?.encoded}
|
||||
label={i18n.translate('xpack.enterpriseSearch.apiKeyConfig.apiKey.apiKeyLabel', {
|
||||
defaultMessage: 'API Key',
|
||||
})}
|
||||
/>
|
||||
</EuiFlexItem>
|
||||
</>
|
||||
)}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue