grafana/public/app/stores/store.ts

17 lines
317 B
TypeScript
Raw Normal View History

import { RootStore, IRootStore } from './RootStore/RootStore';
2017-12-28 10:01:28 -06:00
import config from 'app/core/config';
2017-12-20 10:24:04 -06:00
export let store: IRootStore;
export function createStore(backendSrv) {
store = RootStore.create(
{},
{
backendSrv: backendSrv,
2017-12-28 10:01:28 -06:00
navTree: config.bootData.navTree,
}
);
return store;
2017-12-20 10:24:04 -06:00
}