Loki: remove angular (#49471)

* loki: remove angular

Co-Authored-By: Joey Tawadrous <joey.tawadrous@grafana.com>

* better backward-compatibility

* slightly better typescript check

Co-authored-by: Joey Tawadrous <joey.tawadrous@grafana.com>
This commit is contained in:
Gábor Farkas
2022-06-07 12:41:16 +02:00
committed by GitHub
co-authored by Joey Tawadrous
parent e9fac9ee03
commit cb96f51c73
7 changed files with 115 additions and 93 deletions
@@ -236,7 +236,7 @@ export function getAnnotationsFromData(
*/
export function shouldUseMappingUI(datasource: DataSourceApi): boolean {
const { type } = datasource;
return type !== 'prometheus' && type !== 'elasticsearch';
return type !== 'prometheus' && type !== 'elasticsearch' && type !== 'loki';
}
/**
@@ -244,5 +244,5 @@ export function shouldUseMappingUI(datasource: DataSourceApi): boolean {
*/
export function shouldUseLegacyRunner(datasource: DataSourceApi): boolean {
const { type } = datasource;
return type === 'prometheus' || type === 'elasticsearch';
return type === 'prometheus' || type === 'elasticsearch' || type === 'loki';
}