mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: Add enabled status to authentication_ui_provider_clicked (#83766)
Add enabled metadata to authentication_ui_provider_clicked
This commit is contained in:
parent
21affd3b0e
commit
371aced092
@ -43,8 +43,8 @@ export const AuthConfigPageUnconnected = ({
|
||||
|
||||
const authProviders = getRegisteredAuthProviders();
|
||||
const availableProviders = authProviders.filter((p) => !providerStatuses[p.id]?.hide);
|
||||
const onProviderCardClick = (providerType: string) => {
|
||||
reportInteraction('authentication_ui_provider_clicked', { provider: providerType });
|
||||
const onProviderCardClick = (providerType: string, enabled: boolean) => {
|
||||
reportInteraction('authentication_ui_provider_clicked', { provider: providerType, enabled });
|
||||
};
|
||||
|
||||
const providerList = availableProviders.length
|
||||
@ -86,7 +86,7 @@ export const AuthConfigPageUnconnected = ({
|
||||
authType={settings.type || 'OAuth'}
|
||||
providerId={provider}
|
||||
enabled={settings.enabled}
|
||||
onClick={() => onProviderCardClick(provider)}
|
||||
onClick={() => onProviderCardClick(provider, settings.enabled)}
|
||||
//@ts-expect-error Remove legacy types
|
||||
configPath={settings.configPath}
|
||||
/>
|
||||
|
Loading…
Reference in New Issue
Block a user