Commit c30b1b12 by Torkel Ödegaard

feat(panels): minor progress

parent 9c6698e8
......@@ -7,9 +7,11 @@ class MetricsPanelCtrl extends PanelCtrl {
error: boolean;
loading: boolean;
datasource: any;
$q: any;
datasourceSrv: any;
constructor($scope, private $q, private datasourceSrv) {
super($scope);
constructor($scope, $injector) {
super($scope, $injector);
this.editorTabIndex = 1;
if (!this.panel.targets) {
......
......@@ -15,12 +15,14 @@ export class PanelCtrl {
icon: string;
editorTabs: any;
$scope: any;
$injector: any;
fullscreen: boolean;
inspector: any;
constructor($scope) {
constructor($scope, $injector) {
var plugin = config.panels[this.panel.type];
this.$injector = $injector;
this.$scope = $scope;
this.name = plugin.name;
this.icon = plugin.info.icon;
......
......@@ -9,8 +9,8 @@ function optionsTab() {
export class TestPanelCtrl extends MetricsPanelCtrl {
data: any;
constructor($scope, $q, datasourceSrv) {
super($scope, $q, datasourceSrv);
constructor($scope, $injector) {
super($scope, $injector);
}
initEditorTabs() {
......
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