mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
feat(templating): progress on variable system refactoring, #6048
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
|
||||
import _ from 'lodash';
|
||||
import kbn from 'app/core/utils/kbn';
|
||||
import {Variable, assignModelProperties} from './variable';
|
||||
import {VariableSrv, variableConstructorMap} from './variable_srv';
|
||||
import {Variable, assignModelProperties, variableTypes} from './variable';
|
||||
import {VariableSrv} from './variable_srv';
|
||||
|
||||
export class IntervalVariable implements Variable {
|
||||
auto_count: number;
|
||||
@@ -77,4 +77,8 @@ export class IntervalVariable implements Variable {
|
||||
}
|
||||
}
|
||||
|
||||
variableConstructorMap['interval'] = IntervalVariable;
|
||||
variableTypes['interval'] = {
|
||||
name: 'Interval',
|
||||
ctor: IntervalVariable,
|
||||
description: 'Define a timespan interval (ex 1m, 1h, 1d)',
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user