Commit d34ba416 by Torkel Ödegaard

tech(systemjs): more stuff is starting to work

parent 545c3935
......@@ -19,6 +19,8 @@ function (angular, $, config) {
var panelEl = angular.element(document.createElement('grafana-panel-' + panelType));
elem.append(panelEl);
$compile(panelEl)(scope);
}).catch(function(err) {
scope.appEvent('alert-error', ['Panel Load Error', 'Failed to load panel ' + panelType + ', ' + err]);
});
}
};
......
define([
'./panel_meta2',
],
function (panelMeta) {
'use strict';
return panelMeta.default;
});
......@@ -7,7 +7,7 @@ export default class PanelMeta {
editorTabs: any;
extendedMenu: any;
constructor(options : any) {
constructor(options: any) {
this.description = options.description;
this.fullscreen = options.fullscreen;
this.editIcon = options.editIcon;
......
......@@ -9,7 +9,7 @@ function (angular, app, _, config, PanelMeta) {
'use strict';
var module = angular.module('grafana.panels.dashlist', []);
app.useModule(module);
app.default.useModule(module);
module.directive('grafanaPanelDashlist', function() {
return {
......
......@@ -7,7 +7,7 @@ define([
'use strict';
var module = angular.module('grafana.panels.graph', []);
app.useModule(module);
app.default.useModule(module);
module.controller('SeriesOverridesCtrl', function($scope, $element, popoverSrv) {
$scope.overrideMenu = [];
......
......@@ -11,7 +11,7 @@ function (angular, app, _, kbn, TimeSeries, PanelMeta) {
'use strict';
var module = angular.module('grafana.panels.singlestat');
app.useModule(module);
app.default.useModule(module);
module.directive('grafanaPanelSinglestat', function() {
return {
......
......@@ -9,7 +9,7 @@ function (angular, app, _, $) {
'use strict';
var module = angular.module('grafana.panels.singlestat', []);
app.useModule(module);
app.default.useModule(module);
module.directive('singlestatPanel', function($location, linkSrv, $timeout, templateSrv) {
......
......@@ -3,7 +3,7 @@
import angular = require('angular');
import _ = require('lodash');
import moment = require('moment');
import PanelMeta from '../../../features/panel/panel_meta';
import PanelMeta from 'app/features/panel/panel_meta2';
import {transformDataToTable} from './transformers';
......
......@@ -11,7 +11,7 @@ function (angular, app, _, require, PanelMeta) {
var converter;
var module = angular.module('grafana.panels.text', []);
app.useModule(module);
app.default.useModule(module);
module.directive('grafanaPanelText', function() {
return {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment