mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Prometheus: Promote Azure auth flag to configuration (#53447)
This commit is contained in:
committed by
GitHub
parent
806fb8ab7a
commit
a31d96d20a
@@ -18,7 +18,7 @@ export const ConfigEditor = (props: Props) => {
|
||||
const alertmanagers = getAllAlertmanagerDataSources();
|
||||
|
||||
const azureAuthSettings = {
|
||||
azureAuthSupported: !!config.featureToggles.prometheus_azure_auth,
|
||||
azureAuthSupported: config.azureAuthEnabled,
|
||||
getAzureAuthEnabled: (config: DataSourceSettings<any, any>): boolean => hasCredentials(config),
|
||||
setAzureAuthEnabled: (config: DataSourceSettings<any, any>, enabled: boolean) =>
|
||||
enabled ? setDefaultCredentials(config) : resetCredentials(config),
|
||||
|
||||
Reference in New Issue
Block a user