mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: Remove angular dependency from data sources (#27735)
* Chore: Remove angular dependency from data sources * Removes default export for time and template srvs Also uses @grafana/runtime versions of the interfaces where possible * Replace usage of internal templateSrv where possible * Use runtime templateSrv in a couple more places
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
// Libraries
|
||||
import _ from 'lodash';
|
||||
// Utils
|
||||
import { getTemplateSrv } from '@grafana/runtime';
|
||||
import { Emitter } from 'app/core/utils/emitter';
|
||||
import { getNextRefIdChar } from 'app/core/utils/query';
|
||||
import templateSrv from 'app/features/templating/template_srv';
|
||||
// Types
|
||||
import {
|
||||
AppEvent,
|
||||
@@ -478,7 +478,7 @@ export class PanelModel implements DataConfigSource {
|
||||
if (extraVars) {
|
||||
vars = vars ? { ...vars, ...extraVars } : extraVars;
|
||||
}
|
||||
return templateSrv.replace(value, vars, format);
|
||||
return getTemplateSrv().replace(value, vars, format);
|
||||
}
|
||||
|
||||
resendLastResult() {
|
||||
|
||||
Reference in New Issue
Block a user