feat(plugins): changed so that plugins can load css async via util function exposed from app/plugins/sdk

This commit is contained in:
Torkel Ödegaard
2016-02-10 13:09:39 +01:00
parent dfe0e258cd
commit ae39ec8585
6 changed files with 14 additions and 23 deletions

View File

@ -2,6 +2,16 @@ import {PanelCtrl} from 'app/features/panel/panel_ctrl';
import {MetricsPanelCtrl} from 'app/features/panel/metrics_panel_ctrl';
import {QueryCtrl} from 'app/features/panel/query_ctrl';
import config from 'app/core/config';
export function loadPluginCss(options) {
if (config.bootData.user.lightTheme) {
System.import(options.light + '!css');
} else {
System.import(options.dark + '!css');
}
}
export {
PanelCtrl,
MetricsPanelCtrl,