mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
added opensearch annotations to not use default ui (#50655)
This commit is contained in:
@@ -236,7 +236,9 @@ export function getAnnotationsFromData(
|
||||
*/
|
||||
export function shouldUseMappingUI(datasource: DataSourceApi): boolean {
|
||||
const { type } = datasource;
|
||||
return type !== 'prometheus' && type !== 'elasticsearch' && type !== 'loki';
|
||||
return (
|
||||
type !== 'prometheus' && type !== 'elasticsearch' && type !== 'loki' && type !== 'grafana-opensearch-datasource'
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -244,5 +246,7 @@ export function shouldUseMappingUI(datasource: DataSourceApi): boolean {
|
||||
*/
|
||||
export function shouldUseLegacyRunner(datasource: DataSourceApi): boolean {
|
||||
const { type } = datasource;
|
||||
return type === 'prometheus' || type === 'elasticsearch' || type === 'loki';
|
||||
return (
|
||||
type === 'prometheus' || type === 'elasticsearch' || type === 'loki' || type === 'grafana-opensearch-datasource'
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user