mirror of
https://github.com/grafana/grafana.git
synced 2024-11-28 19:54:10 -06:00
8 lines
336 B
TypeScript
8 lines
336 B
TypeScript
import { DashboardModel } from '../../app/features/dashboard/state';
|
|
import { DashboardMeta } from '../../app/types/dashboard';
|
|
|
|
export const getDashboardModel = (json: any, meta: DashboardMeta = {}) => {
|
|
const getVariablesFromState = () => json.templating.list;
|
|
return new DashboardModel(json, meta, { getVariablesFromState });
|
|
};
|