mirror of
https://github.com/grafana/grafana.git
synced 2026-09-05 04:40:13 -05:00
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:
co-authored by
Joey Tawadrous
parent
e9fac9ee03
commit
cb96f51c73
@@ -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';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user